tvl-spec 1.4.0__tar.gz
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.
- tvl_spec-1.4.0/LICENSE +190 -0
- tvl_spec-1.4.0/LICENSE-content +25 -0
- tvl_spec-1.4.0/MANIFEST.in +5 -0
- tvl_spec-1.4.0/NOTICE +9 -0
- tvl_spec-1.4.0/PKG-INFO +207 -0
- tvl_spec-1.4.0/README.md +177 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/check-operational-refuses-pack.yml +20 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/check-structural-refuses-pack.yml +20 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/ci-gate-refuses-monitors.yml +39 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/ci-gate-refuses-pack.yml +20 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/ci-gate-refuses-requirements.yml +39 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/ci-gate-refuses-responses.yml +39 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/config-validate-refuses-pack.yml +20 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/empty-runtime-block-needs-version.yml +36 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/legacy-erasure-unchanged.yml +56 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/lint-dispatches-pack.yml +19 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/measure-validate-refuses-pack.yml +20 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/measure-validate-refuses-runtime-report.yml +37 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/microsim-bridge-refuses-monitors.yml +38 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/microsim-bridge-refuses-pack.yml +20 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/microsim-bridge-refuses-requirements.yml +38 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/microsim-bridge-refuses-responses.yml +38 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/old-reader-rejects-monitors.yml +36 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/old-reader-rejects-requirements.yml +36 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/old-reader-rejects-responses.yml +36 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/omitted-version-keeps-legacy-diagnostic-rule.yml +67 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/pack-version-required.yml +19 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/parse-dispatches-pack.yml +19 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/policy-refuses-candidate-monitor-counts.yml +40 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/policy-refuses-incumbent-monitor-counts.yml +40 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/rule-on-key-quoted.yml +99 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/rule-on-key-unquoted.yml +99 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/runtime-version-required.yml +70 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/transition-on-key-quoted.yml +113 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/transition-on-key-unquoted.yml +113 -0
- tvl_spec-1.4.0/conformance/cases/runtime/compatibility/validate-dispatches-pack.yml +19 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/agent-cannot-weaken-pack-floor.yml +106 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/all-paired-preview-validates-without-provenance.yml +152 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/budget-change.yml +124 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/change-target.yml +148 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/compile-keeps-deploy-gate.yml +101 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/compile-pack-keeps-composed-responses.yml +159 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/compose-pack-output-validates-as-authored.yml +153 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/composed-module-without-provenance-fails.yml +129 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/deploy-cannot-widen.yml +175 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/deploy-may-tighten.yml +176 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/deploy-meet-takes-never-reversed.yml +176 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/deploy-meet-takes-never.yml +176 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/deploy-omitted-base-cannot-widen.yml +174 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/drop-required-rule.yml +139 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/flip-on-check-error.yml +148 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/floor-only-carriage-and-reference-rewrite.yml +137 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/grace-change.yml +124 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/guard-immutable-under-overlay.yml +228 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/guard-set-order-insensitive.yml +238 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/individually-reachable-meet-unreachable.yml +124 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/meet-recovery-deadline-impossible.yml +148 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/method-change.yml +124 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/outcome-trigger-immutable.yml +224 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/pack-deploy-cannot-borrow-module-gate.yml +159 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/pack-deploy-rejected-in-meet.yml +158 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/pack-guard-absorbed-monitor-rewritten.yml +145 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/pack-severity-cannot-decrease.yml +125 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/population-change.yml +128 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/predicate-change.yml +124 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/severity-absent-base-cannot-lower.yml +142 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/severity-absent-meet-default.yml +143 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/severity-cannot-decrease.yml +142 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/severity-meet-maximum-reversed.yml +144 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/severity-meet-maximum.yml +144 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/severity-omitted-overlay-keeps-critical.yml +143 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/tightening-preserves-base.yml +127 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/weaken-approval.yml +148 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/widen-repeat-bound.yml +148 -0
- tvl_spec-1.4.0/conformance/cases/runtime/composition/window-change.yml +124 -0
- tvl_spec-1.4.0/conformance/cases/runtime/latency_roundtrip/latency-boundary-domain.yml +101 -0
- tvl_spec-1.4.0/conformance/cases/runtime/latency_roundtrip/latency-defaults.yml +101 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/active-obligations-domain.yml +80 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/among-not-checker.yml +67 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/backend-met-unreachable-warning.yml +68 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/budget-domain.yml +69 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/burn-threshold-out-of-range.yml +68 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/closed-catalogue-label.yml +70 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/closed-checker-id.yml +70 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/closed-kind-enum.yml +69 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/closed-selector-status.yml +61 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/closed-severity.yml +79 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/closure-age-domain.yml +69 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/closure-count-domain.yml +69 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/confidence-domain.yml +69 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/content-checker-on-backend.yml +72 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/correlation-limit-domain.yml +80 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/decimal-literal-recoverable-equivalent.yml +98 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/decimal-literal-unrecoverable-rejected.yml +99 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/deploy-closed-enum.yml +95 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/deploy-if-promoted-with-promotion-monitor.yml +98 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/deploy-needs-episode-trigger.yml +118 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/deploy-needs-promotion-monitor.yml +87 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/deploy-never-needs-no-promotion-monitor.yml +86 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/deploy-only-on-optimize.yml +96 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/deploy-promotion-monitor-on-other-requirement.yml +103 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/effective-key-duplicate.yml +95 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/explicit-version-too-low.yml +71 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/grace-domain.yml +69 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/guard-cycle-through-outcome-rule.yml +130 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/guard-metric-not-enforceable.yml +78 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/guard-on-optimize-rejected.yml +122 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/guard-only-while-notify.yml +129 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/guard-redundant-warning.yml +122 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/guard-ref-missing.yml +122 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/guard-unless-cycle.yml +130 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/guard-unless-own-attempt-valid.yml +129 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/guard-unless-self-loop.yml +122 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/horizon-domain.yml +69 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/impossible-recovery-deadline.yml +83 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/invalid-ladder-parameters.yml +85 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/legacy-method-frozen.yml +70 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/local-guard-error-policy-required.yml +82 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/met-reachable-299.yml +69 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/met-unreachable-298.yml +71 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/metric-threshold-domain.yml +69 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/occurrence-bound-domain.yml +73 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/outcome-deploy-needs-if-promoted.yml +119 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/outcome-ref-not-optimize.yml +124 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/outcome-ref-self.yml +119 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/outcome-repeat-forbidden.yml +120 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/outcome-trigger-in-pack.yml +91 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/outcome-trigger-not-notify.yml +119 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/outcome-trigger-notify.yml +126 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/own-closure-unreachable.yml +69 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/pack-cannot-declare-deploy.yml +63 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/primary-breach-unreachable-warning.yml +69 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/primary-liveness-missing-warning.yml +69 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/protocol-overlap.yml +100 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/rate-domain.yml +69 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/recovery-deadline-equality-feasible.yml +82 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/recovery-hours-domain.yml +81 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/repair-needs-approval.yml +84 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/repeat-bound-domain.yml +81 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/repeat-hours-domain.yml +81 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/repeat-must-be-bounded.yml +82 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/response-deadline-domain.yml +80 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/rule-id-must-be-unique.yml +92 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/runtime-dependency-cycle.yml +48 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/runtime-name-collision.yml +69 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/runtime-reference-missing.yml +69 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/runtime-reference-wrong-role.yml +57 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/sample-count-domain.yml +69 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/sampling-rate-domain.yml +69 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/stale-windows-domain.yml +80 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/stateful-pattern-needs-limits.yml +77 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/suspend-human-required.yml +81 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/suspend-needs-escalation.yml +80 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/tenant-floor-outside-pack.yml +71 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/throttle-rate-domain.yml +86 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/tool-identifier-lexical.yml +61 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/trigger-hours-domain.yml +80 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/unknown-for-burn-rejected.yml +146 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/unknown-for-hours-below-window.yml +120 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/unknown-for-not-notify.yml +120 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/unknown-for-primary.yml +127 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/unknown-response-action.yml +84 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/unresolved-fraction-domain.yml +69 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/version-1-4-required.yml +119 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/version-omitted.yml +118 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/window-domain.yml +69 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/zero-tolerance-metric-inexact.yml +61 -0
- tvl_spec-1.4.0/conformance/cases/runtime/lints/zero-tolerance-sampling-forbidden.yml +64 -0
- tvl_spec-1.4.0/conformance/cases/runtime/projection/catalogue-checker-enums-retained.yml +84 -0
- tvl_spec-1.4.0/conformance/cases/runtime/projection/checker-id-and-label-indices.yml +99 -0
- tvl_spec-1.4.0/conformance/cases/runtime/projection/code-identifiers-retained.yml +83 -0
- tvl_spec-1.4.0/conformance/cases/runtime/projection/deploy-mode-closed.yml +134 -0
- tvl_spec-1.4.0/conformance/cases/runtime/projection/environment-tokenized.yml +82 -0
- tvl_spec-1.4.0/conformance/cases/runtime/projection/fallbacks-and-targets-closed.yml +120 -0
- tvl_spec-1.4.0/conformance/cases/runtime/projection/format-v1-refuses-reactive-fields.yml +164 -0
- tvl_spec-1.4.0/conformance/cases/runtime/projection/format-v1-version-14-without-reactive-construct.yml +127 -0
- tvl_spec-1.4.0/conformance/cases/runtime/projection/format-v2-refuses-13-without-reactive-construct.yml +127 -0
- tvl_spec-1.4.0/conformance/cases/runtime/projection/identity-aliases-and-joins.yml +104 -0
- tvl_spec-1.4.0/conformance/cases/runtime/projection/numbers-enums-and-methods.yml +85 -0
- tvl_spec-1.4.0/conformance/cases/runtime/projection/outcome-and-guard-closed-enums.yml +178 -0
- tvl_spec-1.4.0/conformance/cases/runtime/projection/pack-module-tokenized.yml +64 -0
- tvl_spec-1.4.0/conformance/cases/runtime/projection/protocol-states-tokenized.yml +109 -0
- tvl_spec-1.4.0/conformance/cases/runtime/projection/selector-ref-tokenized.yml +93 -0
- tvl_spec-1.4.0/conformance/cases/runtime/projection/token-map-unavailable.yml +72 -0
- tvl_spec-1.4.0/conformance/cases/runtime/projection/unlisted-content-is-local.yml +87 -0
- tvl_spec-1.4.0/conformance/cases/runtime/projection/unlisted-field-egress-refused.yml +91 -0
- tvl_spec-1.4.0/conformance/cases/runtime/projection/unresolved-alias.yml +72 -0
- tvl_spec-1.4.0/conformance/cases/runtime/promotion/chance-constraint-shadow-warning.yml +57 -0
- tvl_spec-1.4.0/conformance/cases/runtime/promotion/count-defaults.yml +62 -0
- tvl_spec-1.4.0/conformance/cases/runtime/promotion/incumbent-counts-not-required.yml +53 -0
- tvl_spec-1.4.0/conformance/cases/runtime/promotion/invalid-monitor-counts.yml +57 -0
- tvl_spec-1.4.0/conformance/cases/runtime/promotion/join-all-met.yml +13 -0
- tvl_spec-1.4.0/conformance/cases/runtime/promotion/join-breach-dominates-unknown.yml +14 -0
- tvl_spec-1.4.0/conformance/cases/runtime/promotion/join-invalid-legacy-decision.yml +12 -0
- tvl_spec-1.4.0/conformance/cases/runtime/promotion/join-invalid-verdict.yml +12 -0
- tvl_spec-1.4.0/conformance/cases/runtime/promotion/join-legacy-reject.yml +13 -0
- tvl_spec-1.4.0/conformance/cases/runtime/promotion/join-no-monitors.yml +12 -0
- tvl_spec-1.4.0/conformance/cases/runtime/promotion/join-unknown-reason.yml +12 -0
- tvl_spec-1.4.0/conformance/cases/runtime/promotion/join-unknown.yml +14 -0
- tvl_spec-1.4.0/conformance/cases/runtime/promotion/missing-monitor-counts.yml +54 -0
- tvl_spec-1.4.0/conformance/cases/runtime/report_schema/closed-shape.yml +40 -0
- tvl_spec-1.4.0/conformance/cases/runtime/report_schema/missing-coverage.yml +39 -0
- tvl_spec-1.4.0/conformance/cases/runtime/report_schema/negative-count.yml +40 -0
- tvl_spec-1.4.0/conformance/cases/runtime/report_schema/unknown-field.yml +41 -0
- tvl_spec-1.4.0/conformance/cases/runtime/semantic_traces/attempt-closed-by-episode-closure-records-no-outcome.yml +162 -0
- tvl_spec-1.4.0/conformance/cases/runtime/semantic_traces/attempt-closed-by-response-revision-awaiting-deploy-approval.yml +193 -0
- tvl_spec-1.4.0/conformance/cases/runtime/semantic_traces/attempt-open-visible-to-rule-fired-by-same-evaluation.yml +170 -0
- tvl_spec-1.4.0/conformance/cases/runtime/semantic_traces/deploy-approval-declined-before-start-closes-without-outcome.yml +198 -0
- tvl_spec-1.4.0/conformance/cases/runtime/semantic_traces/deploy-write-fails-then-succeeds-on-same-occurrence-retry.yml +218 -0
- tvl_spec-1.4.0/conformance/cases/runtime/semantic_traces/initial-counted-window-followed-by-met-fires-unknown-for.yml +109 -0
- tvl_spec-1.4.0/conformance/cases/runtime/semantic_traces/invalid-promotion-evidence-gives-optimize-failed.yml +181 -0
- tvl_spec-1.4.0/conformance/cases/runtime/semantic_traces/one-promoted-and-one-invalid-candidate-give-no-failure.yml +211 -0
- tvl_spec-1.4.0/conformance/cases/runtime/semantic_traces/optimization-approval-expires-after-start-still-records-outcome.yml +178 -0
- tvl_spec-1.4.0/conformance/cases/runtime/semantic_traces/undecided-guard-does-not-suppress.yml +151 -0
- tvl_spec-1.4.0/conformance/cases/runtime/semantic_traces/undecided-run-continues-across-window-without-usable-evidence.yml +122 -0
- tvl_spec-1.4.0/conformance/cases/runtime/semantic_traces/unknown-for-and-stale-both-fire-on-intermittent-evidence.yml +147 -0
- tvl_spec-1.4.0/conformance/cases/runtime/semantic_traces/unreachable-authority-gives-no-outcome.yml +190 -0
- tvl_spec-1.4.0/pyproject.toml +77 -0
- tvl_spec-1.4.0/python/tvl/__init__.py +22 -0
- tvl_spec-1.4.0/python/tvl/backend_profile_codec.py +139 -0
- tvl_spec-1.4.0/python/tvl/binomial.py +27 -0
- tvl_spec-1.4.0/python/tvl/canonical.py +143 -0
- tvl_spec-1.4.0/python/tvl/configuration.py +64 -0
- tvl_spec-1.4.0/python/tvl/conformance_helpers.py +34 -0
- tvl_spec-1.4.0/python/tvl/constraints.py +667 -0
- tvl_spec-1.4.0/python/tvl/diagnostics.py +105 -0
- tvl_spec-1.4.0/python/tvl/errors.py +15 -0
- tvl_spec-1.4.0/python/tvl/lints.py +5757 -0
- tvl_spec-1.4.0/python/tvl/loader.py +43 -0
- tvl_spec-1.4.0/python/tvl/measurement.py +611 -0
- tvl_spec-1.4.0/python/tvl/model.py +374 -0
- tvl_spec-1.4.0/python/tvl/objectives.py +25 -0
- tvl_spec-1.4.0/python/tvl/operational.py +445 -0
- tvl_spec-1.4.0/python/tvl/promotion.py +1131 -0
- tvl_spec-1.4.0/python/tvl/promotion_join.py +37 -0
- tvl_spec-1.4.0/python/tvl/promotion_monitor.py +61 -0
- tvl_spec-1.4.0/python/tvl/py.typed +0 -0
- tvl_spec-1.4.0/python/tvl/runtime.py +65 -0
- tvl_spec-1.4.0/python/tvl/runtime_compiler.py +256 -0
- tvl_spec-1.4.0/python/tvl/runtime_compose.py +707 -0
- tvl_spec-1.4.0/python/tvl/runtime_conformance.py +494 -0
- tvl_spec-1.4.0/python/tvl/runtime_projection.py +656 -0
- tvl_spec-1.4.0/python/tvl/runtime_trace.py +410 -0
- tvl_spec-1.4.0/python/tvl/schema.py +60 -0
- tvl_spec-1.4.0/python/tvl/structural_parser.py +500 -0
- tvl_spec-1.4.0/python/tvl/structural_sat.py +801 -0
- tvl_spec-1.4.0/python/tvl/yaml_safe.py +119 -0
- tvl_spec-1.4.0/python/tvl_book_plugins/__init__.py +6 -0
- tvl_spec-1.4.0/python/tvl_book_plugins/social_override.py +33 -0
- tvl_spec-1.4.0/setup.cfg +4 -0
- tvl_spec-1.4.0/setup.py +21 -0
- tvl_spec-1.4.0/spec/grammar/tvl-configuration.schema.json +18 -0
- tvl_spec-1.4.0/spec/grammar/tvl-measurement.schema.json +96 -0
- tvl_spec-1.4.0/spec/grammar/tvl-pack.schema.json +352 -0
- tvl_spec-1.4.0/spec/grammar/tvl-runtime-contract-v2.schema.json +1005 -0
- tvl_spec-1.4.0/spec/grammar/tvl-runtime-contract.schema.json +429 -0
- tvl_spec-1.4.0/spec/grammar/tvl-runtime-local-v2.schema.json +956 -0
- tvl_spec-1.4.0/spec/grammar/tvl-runtime-local.schema.json +417 -0
- tvl_spec-1.4.0/spec/grammar/tvl-runtime-report.schema.json +119 -0
- tvl_spec-1.4.0/spec/grammar/tvl.ebnf +364 -0
- tvl_spec-1.4.0/spec/grammar/tvl.schema.json +1188 -0
- tvl_spec-1.4.0/tests/data/domain_encode_before.py.txt +35 -0
- tvl_spec-1.4.0/tests/data/structural_tokenizer_subclass_before.json +2131 -0
- tvl_spec-1.4.0/tests/test_book_examples.py +229 -0
- tvl_spec-1.4.0/tests/test_book_media.py +103 -0
- tvl_spec-1.4.0/tests/test_book_support_bot.py +296 -0
- tvl_spec-1.4.0/tests/test_characterization_atom_literal.py +280 -0
- tvl_spec-1.4.0/tests/test_characterization_check_structural_cli.py +460 -0
- tvl_spec-1.4.0/tests/test_characterization_compose_narrowing.py +1245 -0
- tvl_spec-1.4.0/tests/test_characterization_compose_safety.py +334 -0
- tvl_spec-1.4.0/tests/test_characterization_constraints_eval.py +634 -0
- tvl_spec-1.4.0/tests/test_characterization_measurement.py +516 -0
- tvl_spec-1.4.0/tests/test_characterization_operational.py +894 -0
- tvl_spec-1.4.0/tests/test_characterization_promotion.py +2583 -0
- tvl_spec-1.4.0/tests/test_characterization_structural_sat.py +449 -0
- tvl_spec-1.4.0/tests/test_characterization_structural_sat_helpers.py +787 -0
- tvl_spec-1.4.0/tests/test_ci_gate_text_compatibility.py +41 -0
- tvl_spec-1.4.0/tests/test_cli_coverage_gap.py +191 -0
- tvl_spec-1.4.0/tests/test_cli_error_paths.py +223 -0
- tvl_spec-1.4.0/tests/test_codeql_quality_suite.py +120 -0
- tvl_spec-1.4.0/tests/test_composites.py +232 -0
- tvl_spec-1.4.0/tests/test_conformance_suite.py +101 -0
- tvl_spec-1.4.0/tests/test_constraint_shape_validation.py +102 -0
- tvl_spec-1.4.0/tests/test_constraints_fail_open_regression.py +167 -0
- tvl_spec-1.4.0/tests/test_constraints_float_domain.py +47 -0
- tvl_spec-1.4.0/tests/test_constraints_numeric_enum_order.py +85 -0
- tvl_spec-1.4.0/tests/test_constraints_parser_fixes.py +402 -0
- tvl_spec-1.4.0/tests/test_cvars_policies.py +361 -0
- tvl_spec-1.4.0/tests/test_domain_encode_characterization.py +205 -0
- tvl_spec-1.4.0/tests/test_domain_encode_differential.py +196 -0
- tvl_spec-1.4.0/tests/test_editor_schema_sync.py +16 -0
- tvl_spec-1.4.0/tests/test_issue_text_location.py +30 -0
- tvl_spec-1.4.0/tests/test_language_boundary.py +127 -0
- tvl_spec-1.4.0/tests/test_lint_non_mapping.py +51 -0
- tvl_spec-1.4.0/tests/test_lints.py +405 -0
- tvl_spec-1.4.0/tests/test_measurement_bundle.py +127 -0
- tvl_spec-1.4.0/tests/test_operational.py +113 -0
- tvl_spec-1.4.0/tests/test_parser_dos_guards.py +218 -0
- tvl_spec-1.4.0/tests/test_promotion_evidence_semantics.py +206 -0
- tvl_spec-1.4.0/tests/test_promotion_join.py +55 -0
- tvl_spec-1.4.0/tests/test_promotion_objective_validation.py +52 -0
- tvl_spec-1.4.0/tests/test_promotion_policy.py +908 -0
- tvl_spec-1.4.0/tests/test_promotion_single_sample.py +50 -0
- tvl_spec-1.4.0/tests/test_runtime_cli_harness.py +39 -0
- tvl_spec-1.4.0/tests/test_runtime_compiler.py +560 -0
- tvl_spec-1.4.0/tests/test_runtime_compose.py +383 -0
- tvl_spec-1.4.0/tests/test_runtime_deploy.py +181 -0
- tvl_spec-1.4.0/tests/test_runtime_diagnostics.py +342 -0
- tvl_spec-1.4.0/tests/test_runtime_doc_snippets.py +160 -0
- tvl_spec-1.4.0/tests/test_runtime_formats.py +184 -0
- tvl_spec-1.4.0/tests/test_runtime_rfc0004.py +319 -0
- tvl_spec-1.4.0/tests/test_runtime_semantics.py +67 -0
- tvl_spec-1.4.0/tests/test_runtime_trace.py +520 -0
- tvl_spec-1.4.0/tests/test_strict_calibration_triggers.py +204 -0
- tvl_spec-1.4.0/tests/test_structural_sat.py +546 -0
- tvl_spec-1.4.0/tests/test_structural_tokenizer_subclass_characterization.py +74 -0
- tvl_spec-1.4.0/tests/test_tvl_compose.py +868 -0
- tvl_spec-1.4.0/tests/test_type_system.py +471 -0
- tvl_spec-1.4.0/tests/test_validator_silent_accepts.py +116 -0
- tvl_spec-1.4.0/tests/test_workflow_action_pins.py +40 -0
- tvl_spec-1.4.0/tvl_spec.egg-info/PKG-INFO +207 -0
- tvl_spec-1.4.0/tvl_spec.egg-info/SOURCES.txt +352 -0
- tvl_spec-1.4.0/tvl_spec.egg-info/dependency_links.txt +1 -0
- tvl_spec-1.4.0/tvl_spec.egg-info/entry_points.txt +15 -0
- tvl_spec-1.4.0/tvl_spec.egg-info/requires.txt +13 -0
- tvl_spec-1.4.0/tvl_spec.egg-info/top_level.txt +3 -0
- tvl_spec-1.4.0/tvl_spec.egg-info/zip-safe +1 -0
- tvl_spec-1.4.0/tvl_tools/__init__.py +2 -0
- tvl_spec-1.4.0/tvl_tools/cli_utils.py +101 -0
- tvl_spec-1.4.0/tvl_tools/microsim_bridge/__init__.py +5 -0
- tvl_spec-1.4.0/tvl_tools/microsim_bridge/__main__.py +4 -0
- tvl_spec-1.4.0/tvl_tools/microsim_bridge/bridge.py +238 -0
- tvl_spec-1.4.0/tvl_tools/microsim_bridge/cli.py +78 -0
- tvl_spec-1.4.0/tvl_tools/runtime_cli_harness.py +135 -0
- tvl_spec-1.4.0/tvl_tools/tvl_check_operational/__init__.py +0 -0
- tvl_spec-1.4.0/tvl_tools/tvl_check_operational/cli.py +80 -0
- tvl_spec-1.4.0/tvl_tools/tvl_check_structural/__init__.py +0 -0
- tvl_spec-1.4.0/tvl_tools/tvl_check_structural/cli.py +373 -0
- tvl_spec-1.4.0/tvl_tools/tvl_ci_gate/__init__.py +1 -0
- tvl_spec-1.4.0/tvl_tools/tvl_ci_gate/cli.py +213 -0
- tvl_spec-1.4.0/tvl_tools/tvl_compile_runtime/__init__.py +1 -0
- tvl_spec-1.4.0/tvl_tools/tvl_compile_runtime/cli.py +207 -0
- tvl_spec-1.4.0/tvl_tools/tvl_compose/__init__.py +1 -0
- tvl_spec-1.4.0/tvl_tools/tvl_compose/cli.py +832 -0
- tvl_spec-1.4.0/tvl_tools/tvl_config_validate/__init__.py +1 -0
- tvl_spec-1.4.0/tvl_tools/tvl_config_validate/cli.py +170 -0
- tvl_spec-1.4.0/tvl_tools/tvl_lint/__init__.py +1 -0
- tvl_spec-1.4.0/tvl_tools/tvl_lint/cli.py +77 -0
- tvl_spec-1.4.0/tvl_tools/tvl_measure_validate/__init__.py +1 -0
- tvl_spec-1.4.0/tvl_tools/tvl_measure_validate/cli.py +89 -0
- tvl_spec-1.4.0/tvl_tools/tvl_parse/__init__.py +1 -0
- tvl_spec-1.4.0/tvl_tools/tvl_parse/cli.py +37 -0
- tvl_spec-1.4.0/tvl_tools/tvl_validate/__init__.py +1 -0
- tvl_spec-1.4.0/tvl_tools/tvl_validate/cli.py +93 -0
tvl_spec-1.4.0/LICENSE
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2026 Traigent
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Creative Commons Attribution 4.0 International
|
|
2
|
+
|
|
3
|
+
The authored content listed below is licensed under the Creative Commons
|
|
4
|
+
Attribution 4.0 International License (CC-BY-4.0).
|
|
5
|
+
|
|
6
|
+
Covered paths in this repository:
|
|
7
|
+
|
|
8
|
+
- `docs/`
|
|
9
|
+
- `formalization/`
|
|
10
|
+
- `tvl_book/website_content/`
|
|
11
|
+
- `website/client/public/docs/`
|
|
12
|
+
- `website/client/src/book/**/*.mdx` (book prose)
|
|
13
|
+
- `website/client/public/book/media/**` (book figures and rendered animations)
|
|
14
|
+
- `website/dist/public/book/tvl-book.pdf` (the built book PDF; not tracked, listed so the licence travels with the file)
|
|
15
|
+
|
|
16
|
+
You are free to share and adapt this material for any purpose, including
|
|
17
|
+
commercial use, provided that you give appropriate credit, provide a link to
|
|
18
|
+
the license, and indicate whether changes were made.
|
|
19
|
+
|
|
20
|
+
License URL:
|
|
21
|
+
|
|
22
|
+
- https://creativecommons.org/licenses/by/4.0/
|
|
23
|
+
|
|
24
|
+
Unless a file or subdirectory states otherwise, materials outside the covered
|
|
25
|
+
paths above follow the repository's default Apache-2.0 license in `LICENSE`.
|
tvl_spec-1.4.0/NOTICE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
TVL (Tuned Variables Language)
|
|
2
|
+
Copyright 2024-2026 Traigent Ltd.
|
|
3
|
+
|
|
4
|
+
This product includes software developed at Traigent Ltd.
|
|
5
|
+
(https://www.traigent.ai/).
|
|
6
|
+
|
|
7
|
+
Licensed under the Apache License, Version 2.0. See LICENSE.
|
|
8
|
+
Authored documentation, formalization notes, and learning content are
|
|
9
|
+
licensed under CC-BY-4.0. See LICENSE-content.
|
tvl_spec-1.4.0/PKG-INFO
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tvl-spec
|
|
3
|
+
Version: 1.4.0
|
|
4
|
+
Summary: TVL: a typed AI agent requirements and verification specification language
|
|
5
|
+
Author-email: Traigent Team <open-source@traigent.com>
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://tvl-lang.org
|
|
8
|
+
Project-URL: Repository, https://github.com/Traigent/tvl
|
|
9
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
14
|
+
Requires-Python: >=3.12
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
License-File: LICENSE-content
|
|
18
|
+
License-File: NOTICE
|
|
19
|
+
Requires-Dist: PyYAML>=6.0
|
|
20
|
+
Requires-Dist: jsonschema>=4.19
|
|
21
|
+
Requires-Dist: ortools>=9.8
|
|
22
|
+
Requires-Dist: scipy>=1.11
|
|
23
|
+
Provides-Extra: dev
|
|
24
|
+
Requires-Dist: z3-solver>=4.12; platform_system != "Windows" and extra == "dev"
|
|
25
|
+
Requires-Dist: mkdocs-material[imaging]>=9.2; extra == "dev"
|
|
26
|
+
Requires-Dist: pytest>=8; extra == "dev"
|
|
27
|
+
Requires-Dist: datasets>=3; extra == "dev"
|
|
28
|
+
Requires-Dist: huggingface_hub>=0.31; extra == "dev"
|
|
29
|
+
Dynamic: license-file
|
|
30
|
+
|
|
31
|
+
# TVL — an AI agent requirements specification language
|
|
32
|
+
|
|
33
|
+
[](https://github.com/Traigent/tvl/actions/workflows/ci.yml)
|
|
34
|
+
[](https://github.com/Traigent/tvl/actions/workflows/codeql.yml)
|
|
35
|
+
[](https://github.com/Traigent/tvl/actions/workflows/lean-proofs.yml)
|
|
36
|
+
[](LICENSE)
|
|
37
|
+
[](CHANGELOG.md)
|
|
38
|
+
|
|
39
|
+
**Tuned Variables Language (TVL)** is a typed, machine-checkable language for specifying what an AI agent must achieve, what parts of its design may vary, and what evidence is required before a candidate may be accepted.
|
|
40
|
+
|
|
41
|
+
AI agent requirements are often scattered across prompts, configuration files, evaluation scripts, dashboards, and release checklists. That makes it hard to answer basic questions: Which agent designs are allowed? Which properties are required? Which evaluation set and metrics define success? What evidence supports a release or certification claim?
|
|
42
|
+
|
|
43
|
+
TVL puts those requirements in one reviewable specification. It describes an **agent design space**, rather than prescribing the code or optimization algorithm used to build one agent.
|
|
44
|
+
|
|
45
|
+
## A 30-second example
|
|
46
|
+
|
|
47
|
+
Save this as `support-bot.tvl.yml`. It declares two allowed agent choices, one rule relating them, one objective, and the promotion policy:
|
|
48
|
+
|
|
49
|
+
```yaml
|
|
50
|
+
tvl:
|
|
51
|
+
module: example.support_bot
|
|
52
|
+
tvl_version: "1.2"
|
|
53
|
+
|
|
54
|
+
environment:
|
|
55
|
+
snapshot_id: "2026-01-01T00:00:00Z"
|
|
56
|
+
|
|
57
|
+
evaluation_set:
|
|
58
|
+
dataset: "test://support-bot"
|
|
59
|
+
|
|
60
|
+
tvars:
|
|
61
|
+
- name: model
|
|
62
|
+
type: enum[str]
|
|
63
|
+
domain: ["small", "large"]
|
|
64
|
+
- name: max_tool_calls
|
|
65
|
+
type: int
|
|
66
|
+
domain:
|
|
67
|
+
range: [0, 5]
|
|
68
|
+
|
|
69
|
+
constraints:
|
|
70
|
+
structural:
|
|
71
|
+
- when: model = 'small'
|
|
72
|
+
then: max_tool_calls <= 3
|
|
73
|
+
|
|
74
|
+
objectives:
|
|
75
|
+
- name: resolution_rate
|
|
76
|
+
metric_ref: metrics.resolution_rate.v1
|
|
77
|
+
direction: maximize
|
|
78
|
+
|
|
79
|
+
promotion_policy:
|
|
80
|
+
dominance: epsilon_pareto
|
|
81
|
+
alpha: 0.05
|
|
82
|
+
min_effect:
|
|
83
|
+
resolution_rate: 0.01
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
From a clone of this repository (see [Quick start](#quick-start) to install), check it:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
tvl-validate support-bot.tvl.yml # prints: Schema + lint checks passed.
|
|
90
|
+
tvl-lint support-bot.tvl.yml # prints: Lint checks passed.
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## The problem TVL solves
|
|
94
|
+
|
|
95
|
+
A TVL module connects four things that otherwise drift apart:
|
|
96
|
+
|
|
97
|
+
1. **Agent design space** — typed variables for allowed models, prompts, tools, retrieval, routing, memory, orchestration, and other agent choices.
|
|
98
|
+
2. **Required properties** — structural rules, operating assumptions, objectives, acceptable ranges, and behavioral constraints.
|
|
99
|
+
3. **Evaluation contract** — the evaluation set and metric identifiers used to produce comparable evidence.
|
|
100
|
+
4. **Acceptance policy** — the evidence and statistical conditions required to accept or promote a candidate.
|
|
101
|
+
|
|
102
|
+
This gives developers, evaluators, CI systems, and certification workflows a shared contract for AI agent verification.
|
|
103
|
+
|
|
104
|
+
## What makes TVL different
|
|
105
|
+
|
|
106
|
+
TVL specifies the set of acceptable agents. It does not specify the construction procedure for a particular agent.
|
|
107
|
+
|
|
108
|
+
```text
|
|
109
|
+
TVL module
|
|
110
|
+
├── allowed agent choices
|
|
111
|
+
├── relationships between those choices
|
|
112
|
+
├── required measured properties
|
|
113
|
+
├── pinned evaluation context
|
|
114
|
+
└── acceptance and promotion criteria
|
|
115
|
+
↓
|
|
116
|
+
validators, optimizers, evaluators, CI gates, or certifiers
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Any compatible tool may search the declared space. The TVL contract stays stable when the optimizer, model provider, agent framework, or implementation changes.
|
|
120
|
+
|
|
121
|
+
## Verification and certification scope
|
|
122
|
+
|
|
123
|
+
TVL can be the specification layer for a verifiable certificate. A defensible claim is scoped to:
|
|
124
|
+
|
|
125
|
+
- a versioned TVL module;
|
|
126
|
+
- a candidate configuration or implementation binding;
|
|
127
|
+
- a pinned evaluation set and environment context;
|
|
128
|
+
- named evaluator and metric definitions;
|
|
129
|
+
- evidence produced by a governed process; and
|
|
130
|
+
- the acceptance checks that actually ran.
|
|
131
|
+
|
|
132
|
+
Passing a TVL gate means that the candidate met the declared requirements under that pinned contract and evidence. It does not by itself prove universal safety, correctness, or performance outside that scope. See [AI Agent Requirements and Certification](docs/agent-requirements.md).
|
|
133
|
+
|
|
134
|
+
## TVL 1.3: requirements in production
|
|
135
|
+
|
|
136
|
+
TVL 1.3 (accepted 2026-10-21) is a conservative extension of TVL 1.2: a module without the new blocks means exactly what it meant before. It adds three optional blocks: `requirements` (what must keep holding once the agent runs, such as "at most 5% of traces take longer than 2 s" or "the agent never calls a forbidden tool"), `monitors` (which evidence checks a requirement, before release or in production, and with what statistics) and `responses` (what should happen when a monitor reports a breach, from a notification to a human-approved suspend). A separate `tvl_pack` document carries organisation floors that modules can only tighten.
|
|
137
|
+
|
|
138
|
+
TVL states what these declarations mean and what each verdict promises; its tools validate, compose and compile them, and `tvl-ci-gate` decides promotion monitors from fully resolved evaluation-set counts. Evaluating runtime evidence and carrying out responses is outside the language ([RFC 0003 §3.5](formalization/rfc-0003-runtime-requirements-monitors-responses.md)).
|
|
139
|
+
|
|
140
|
+
- Guide: [Requirements, Monitors and Responses](docs/guides/requirements-monitors-responses.md)
|
|
141
|
+
- Book: [Chapter 6 · Requirements in Production](tvl_book/website_content/book/chapter-06-requirements-in-production.md)
|
|
142
|
+
- Specification: [RFC 0003](formalization/rfc-0003-runtime-requirements-monitors-responses.md) (Accepted) and [formal semantics §12](formalization/tvl-formal-semantics.md)
|
|
143
|
+
- Examples: [`spec/examples/runtime-1.3/`](spec/examples/runtime-1.3/)
|
|
144
|
+
|
|
145
|
+
## Quick start
|
|
146
|
+
|
|
147
|
+
Install the Python package and CLI tools from the repository root:
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
git clone https://github.com/Traigent/tvl.git
|
|
151
|
+
cd tvl
|
|
152
|
+
python -m pip install -e ".[dev]"
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
Validate a shipped AI agent specification:
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
tvl-validate spec/examples/rag-support-bot.tvl.yml
|
|
159
|
+
tvl-check-structural spec/examples/rag-support-bot.tvl.yml
|
|
160
|
+
tvl-check-operational spec/examples/rag-support-bot.tvl.yml
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## Language version
|
|
164
|
+
|
|
165
|
+
The current language version is **TVL 1.4**. TVL 1.1 added calibrated variables (`cvars`), operational `policies`, and the strict `promotion_policy.require_calibration` mode ([RFC 0001](formalization/rfc-0001-knob-bindings-cvars-policies.md)); TVL 1.2 added `composites` ([RFC 0002](formalization/rfc-0002-composite-knobs.md)); TVL 1.3 added runtime requirements, monitors and responses ([RFC 0003](formalization/rfc-0003-runtime-requirements-monitors-responses.md), above); TVL 1.4 added reactive outcome notifications, undecided-run notifications and notification guards ([RFC 0004](formalization/rfc-0004-reactive-outcomes-and-guards.md), accepted 2026-10-21, and [formal semantics §13](formalization/tvl-formal-semantics.md#13-reactive-outcomes-and-notification-guards-tvl-14)). All are conservative extensions: a module that uses none of these constructs (nor TVAR ownership `scope`, also added in 1.1) is also a valid 1.0 module. The user guides focus on the core constructs; every diagnostic the validators emit, including those for the 1.1 and 1.2 constructs, is listed in the [error code catalog](docs/reference/error-codes.md). See the [changelog](CHANGELOG.md) for details.
|
|
166
|
+
|
|
167
|
+
## Repository map
|
|
168
|
+
|
|
169
|
+
- `spec/` — normative grammar, schemas, examples, and promotion contracts
|
|
170
|
+
- `docs/` — problem statement, language reference, verification model, and guides
|
|
171
|
+
- `formalization/` — formal semantics, with normative and informative sections identified
|
|
172
|
+
- `python/` and `tvl_tools/` — reference validators, SDK, and CLI tools
|
|
173
|
+
- `tests/` and `conformance/` — executable validation and compatibility cases
|
|
174
|
+
- `vscode-tvl/` and `editor_shared/` — editor support
|
|
175
|
+
- `website/` — source for [tvl-lang.org](https://tvl-lang.org)
|
|
176
|
+
- `proofs/` — Lean mechanization for selected results (pre-RFC-0001/0002 core subset; `cvars`/`policies`/`composites` are not yet formalized, see `proofs/PROOF_SUMMARY.md`'s coverage note; the TVL 1.3 language results and TVL 1.4 guard results are listed in its *Runtime (TVL 1.3)* and *RFC 0004* sections)
|
|
177
|
+
|
|
178
|
+
## Start here
|
|
179
|
+
|
|
180
|
+
1. [AI Agent Requirements and Certification](docs/agent-requirements.md)
|
|
181
|
+
2. [Getting Started](docs/getting-started.md)
|
|
182
|
+
3. [Language Reference](docs/reference/language.md)
|
|
183
|
+
4. [Semantics and Verification Reference](docs/reference/verification.md)
|
|
184
|
+
5. [Agent Evaluation and Promotion Evidence](docs/guides/statistical-validation-guide.md)
|
|
185
|
+
6. [Requirements, Monitors and Responses (TVL 1.3)](docs/guides/requirements-monitors-responses.md)
|
|
186
|
+
7. [Complete examples](spec/examples/)
|
|
187
|
+
|
|
188
|
+
## Specification boundary
|
|
189
|
+
|
|
190
|
+
TVL standardizes what a conforming module means and what a verifier must check. It does not standardize search algorithms, optimizer architecture, scheduling, sample allocation, or internal solver representation. Those mechanisms may be documented by individual implementations without becoming part of the language contract. Likewise, for TVL 1.3 the language defines what a runtime requirement means and what each verdict promises; how an evaluator decides from runtime evidence and how a platform executes responses are not part of the language contract.
|
|
191
|
+
|
|
192
|
+
## License
|
|
193
|
+
|
|
194
|
+
- Code, schemas, validators, CLI tools, editor support, tests, executable examples, and the website application are licensed under Apache-2.0 in [LICENSE](LICENSE), unless a subdirectory provides its own license file.
|
|
195
|
+
- Authored documentation, formalization notes, and learning content are licensed under CC-BY-4.0 as described in [LICENSE-content](LICENSE-content).
|
|
196
|
+
|
|
197
|
+
## Community
|
|
198
|
+
|
|
199
|
+
- [Contributing](CONTRIBUTING.md) · [RFC process](formalization/README.md) · [Governance](GOVERNANCE.md) · [Maintainers](MAINTAINERS.md)
|
|
200
|
+
- [Code of Conduct](CODE_OF_CONDUCT.md) · [Security policy](SECURITY.md) · [Support](SUPPORT.md)
|
|
201
|
+
|
|
202
|
+
## Links
|
|
203
|
+
|
|
204
|
+
- Website: <https://tvl-lang.org>
|
|
205
|
+
- Documentation: <https://tvl-lang.org/specification>
|
|
206
|
+
- Discussions: <https://github.com/Traigent/tvl/discussions>
|
|
207
|
+
- Issues: <https://github.com/Traigent/tvl/issues>
|
tvl_spec-1.4.0/README.md
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# TVL — an AI agent requirements specification language
|
|
2
|
+
|
|
3
|
+
[](https://github.com/Traigent/tvl/actions/workflows/ci.yml)
|
|
4
|
+
[](https://github.com/Traigent/tvl/actions/workflows/codeql.yml)
|
|
5
|
+
[](https://github.com/Traigent/tvl/actions/workflows/lean-proofs.yml)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
[](CHANGELOG.md)
|
|
8
|
+
|
|
9
|
+
**Tuned Variables Language (TVL)** is a typed, machine-checkable language for specifying what an AI agent must achieve, what parts of its design may vary, and what evidence is required before a candidate may be accepted.
|
|
10
|
+
|
|
11
|
+
AI agent requirements are often scattered across prompts, configuration files, evaluation scripts, dashboards, and release checklists. That makes it hard to answer basic questions: Which agent designs are allowed? Which properties are required? Which evaluation set and metrics define success? What evidence supports a release or certification claim?
|
|
12
|
+
|
|
13
|
+
TVL puts those requirements in one reviewable specification. It describes an **agent design space**, rather than prescribing the code or optimization algorithm used to build one agent.
|
|
14
|
+
|
|
15
|
+
## A 30-second example
|
|
16
|
+
|
|
17
|
+
Save this as `support-bot.tvl.yml`. It declares two allowed agent choices, one rule relating them, one objective, and the promotion policy:
|
|
18
|
+
|
|
19
|
+
```yaml
|
|
20
|
+
tvl:
|
|
21
|
+
module: example.support_bot
|
|
22
|
+
tvl_version: "1.2"
|
|
23
|
+
|
|
24
|
+
environment:
|
|
25
|
+
snapshot_id: "2026-01-01T00:00:00Z"
|
|
26
|
+
|
|
27
|
+
evaluation_set:
|
|
28
|
+
dataset: "test://support-bot"
|
|
29
|
+
|
|
30
|
+
tvars:
|
|
31
|
+
- name: model
|
|
32
|
+
type: enum[str]
|
|
33
|
+
domain: ["small", "large"]
|
|
34
|
+
- name: max_tool_calls
|
|
35
|
+
type: int
|
|
36
|
+
domain:
|
|
37
|
+
range: [0, 5]
|
|
38
|
+
|
|
39
|
+
constraints:
|
|
40
|
+
structural:
|
|
41
|
+
- when: model = 'small'
|
|
42
|
+
then: max_tool_calls <= 3
|
|
43
|
+
|
|
44
|
+
objectives:
|
|
45
|
+
- name: resolution_rate
|
|
46
|
+
metric_ref: metrics.resolution_rate.v1
|
|
47
|
+
direction: maximize
|
|
48
|
+
|
|
49
|
+
promotion_policy:
|
|
50
|
+
dominance: epsilon_pareto
|
|
51
|
+
alpha: 0.05
|
|
52
|
+
min_effect:
|
|
53
|
+
resolution_rate: 0.01
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
From a clone of this repository (see [Quick start](#quick-start) to install), check it:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
tvl-validate support-bot.tvl.yml # prints: Schema + lint checks passed.
|
|
60
|
+
tvl-lint support-bot.tvl.yml # prints: Lint checks passed.
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## The problem TVL solves
|
|
64
|
+
|
|
65
|
+
A TVL module connects four things that otherwise drift apart:
|
|
66
|
+
|
|
67
|
+
1. **Agent design space** — typed variables for allowed models, prompts, tools, retrieval, routing, memory, orchestration, and other agent choices.
|
|
68
|
+
2. **Required properties** — structural rules, operating assumptions, objectives, acceptable ranges, and behavioral constraints.
|
|
69
|
+
3. **Evaluation contract** — the evaluation set and metric identifiers used to produce comparable evidence.
|
|
70
|
+
4. **Acceptance policy** — the evidence and statistical conditions required to accept or promote a candidate.
|
|
71
|
+
|
|
72
|
+
This gives developers, evaluators, CI systems, and certification workflows a shared contract for AI agent verification.
|
|
73
|
+
|
|
74
|
+
## What makes TVL different
|
|
75
|
+
|
|
76
|
+
TVL specifies the set of acceptable agents. It does not specify the construction procedure for a particular agent.
|
|
77
|
+
|
|
78
|
+
```text
|
|
79
|
+
TVL module
|
|
80
|
+
├── allowed agent choices
|
|
81
|
+
├── relationships between those choices
|
|
82
|
+
├── required measured properties
|
|
83
|
+
├── pinned evaluation context
|
|
84
|
+
└── acceptance and promotion criteria
|
|
85
|
+
↓
|
|
86
|
+
validators, optimizers, evaluators, CI gates, or certifiers
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
Any compatible tool may search the declared space. The TVL contract stays stable when the optimizer, model provider, agent framework, or implementation changes.
|
|
90
|
+
|
|
91
|
+
## Verification and certification scope
|
|
92
|
+
|
|
93
|
+
TVL can be the specification layer for a verifiable certificate. A defensible claim is scoped to:
|
|
94
|
+
|
|
95
|
+
- a versioned TVL module;
|
|
96
|
+
- a candidate configuration or implementation binding;
|
|
97
|
+
- a pinned evaluation set and environment context;
|
|
98
|
+
- named evaluator and metric definitions;
|
|
99
|
+
- evidence produced by a governed process; and
|
|
100
|
+
- the acceptance checks that actually ran.
|
|
101
|
+
|
|
102
|
+
Passing a TVL gate means that the candidate met the declared requirements under that pinned contract and evidence. It does not by itself prove universal safety, correctness, or performance outside that scope. See [AI Agent Requirements and Certification](docs/agent-requirements.md).
|
|
103
|
+
|
|
104
|
+
## TVL 1.3: requirements in production
|
|
105
|
+
|
|
106
|
+
TVL 1.3 (accepted 2026-10-21) is a conservative extension of TVL 1.2: a module without the new blocks means exactly what it meant before. It adds three optional blocks: `requirements` (what must keep holding once the agent runs, such as "at most 5% of traces take longer than 2 s" or "the agent never calls a forbidden tool"), `monitors` (which evidence checks a requirement, before release or in production, and with what statistics) and `responses` (what should happen when a monitor reports a breach, from a notification to a human-approved suspend). A separate `tvl_pack` document carries organisation floors that modules can only tighten.
|
|
107
|
+
|
|
108
|
+
TVL states what these declarations mean and what each verdict promises; its tools validate, compose and compile them, and `tvl-ci-gate` decides promotion monitors from fully resolved evaluation-set counts. Evaluating runtime evidence and carrying out responses is outside the language ([RFC 0003 §3.5](formalization/rfc-0003-runtime-requirements-monitors-responses.md)).
|
|
109
|
+
|
|
110
|
+
- Guide: [Requirements, Monitors and Responses](docs/guides/requirements-monitors-responses.md)
|
|
111
|
+
- Book: [Chapter 6 · Requirements in Production](tvl_book/website_content/book/chapter-06-requirements-in-production.md)
|
|
112
|
+
- Specification: [RFC 0003](formalization/rfc-0003-runtime-requirements-monitors-responses.md) (Accepted) and [formal semantics §12](formalization/tvl-formal-semantics.md)
|
|
113
|
+
- Examples: [`spec/examples/runtime-1.3/`](spec/examples/runtime-1.3/)
|
|
114
|
+
|
|
115
|
+
## Quick start
|
|
116
|
+
|
|
117
|
+
Install the Python package and CLI tools from the repository root:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
git clone https://github.com/Traigent/tvl.git
|
|
121
|
+
cd tvl
|
|
122
|
+
python -m pip install -e ".[dev]"
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Validate a shipped AI agent specification:
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
tvl-validate spec/examples/rag-support-bot.tvl.yml
|
|
129
|
+
tvl-check-structural spec/examples/rag-support-bot.tvl.yml
|
|
130
|
+
tvl-check-operational spec/examples/rag-support-bot.tvl.yml
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## Language version
|
|
134
|
+
|
|
135
|
+
The current language version is **TVL 1.4**. TVL 1.1 added calibrated variables (`cvars`), operational `policies`, and the strict `promotion_policy.require_calibration` mode ([RFC 0001](formalization/rfc-0001-knob-bindings-cvars-policies.md)); TVL 1.2 added `composites` ([RFC 0002](formalization/rfc-0002-composite-knobs.md)); TVL 1.3 added runtime requirements, monitors and responses ([RFC 0003](formalization/rfc-0003-runtime-requirements-monitors-responses.md), above); TVL 1.4 added reactive outcome notifications, undecided-run notifications and notification guards ([RFC 0004](formalization/rfc-0004-reactive-outcomes-and-guards.md), accepted 2026-10-21, and [formal semantics §13](formalization/tvl-formal-semantics.md#13-reactive-outcomes-and-notification-guards-tvl-14)). All are conservative extensions: a module that uses none of these constructs (nor TVAR ownership `scope`, also added in 1.1) is also a valid 1.0 module. The user guides focus on the core constructs; every diagnostic the validators emit, including those for the 1.1 and 1.2 constructs, is listed in the [error code catalog](docs/reference/error-codes.md). See the [changelog](CHANGELOG.md) for details.
|
|
136
|
+
|
|
137
|
+
## Repository map
|
|
138
|
+
|
|
139
|
+
- `spec/` — normative grammar, schemas, examples, and promotion contracts
|
|
140
|
+
- `docs/` — problem statement, language reference, verification model, and guides
|
|
141
|
+
- `formalization/` — formal semantics, with normative and informative sections identified
|
|
142
|
+
- `python/` and `tvl_tools/` — reference validators, SDK, and CLI tools
|
|
143
|
+
- `tests/` and `conformance/` — executable validation and compatibility cases
|
|
144
|
+
- `vscode-tvl/` and `editor_shared/` — editor support
|
|
145
|
+
- `website/` — source for [tvl-lang.org](https://tvl-lang.org)
|
|
146
|
+
- `proofs/` — Lean mechanization for selected results (pre-RFC-0001/0002 core subset; `cvars`/`policies`/`composites` are not yet formalized, see `proofs/PROOF_SUMMARY.md`'s coverage note; the TVL 1.3 language results and TVL 1.4 guard results are listed in its *Runtime (TVL 1.3)* and *RFC 0004* sections)
|
|
147
|
+
|
|
148
|
+
## Start here
|
|
149
|
+
|
|
150
|
+
1. [AI Agent Requirements and Certification](docs/agent-requirements.md)
|
|
151
|
+
2. [Getting Started](docs/getting-started.md)
|
|
152
|
+
3. [Language Reference](docs/reference/language.md)
|
|
153
|
+
4. [Semantics and Verification Reference](docs/reference/verification.md)
|
|
154
|
+
5. [Agent Evaluation and Promotion Evidence](docs/guides/statistical-validation-guide.md)
|
|
155
|
+
6. [Requirements, Monitors and Responses (TVL 1.3)](docs/guides/requirements-monitors-responses.md)
|
|
156
|
+
7. [Complete examples](spec/examples/)
|
|
157
|
+
|
|
158
|
+
## Specification boundary
|
|
159
|
+
|
|
160
|
+
TVL standardizes what a conforming module means and what a verifier must check. It does not standardize search algorithms, optimizer architecture, scheduling, sample allocation, or internal solver representation. Those mechanisms may be documented by individual implementations without becoming part of the language contract. Likewise, for TVL 1.3 the language defines what a runtime requirement means and what each verdict promises; how an evaluator decides from runtime evidence and how a platform executes responses are not part of the language contract.
|
|
161
|
+
|
|
162
|
+
## License
|
|
163
|
+
|
|
164
|
+
- Code, schemas, validators, CLI tools, editor support, tests, executable examples, and the website application are licensed under Apache-2.0 in [LICENSE](LICENSE), unless a subdirectory provides its own license file.
|
|
165
|
+
- Authored documentation, formalization notes, and learning content are licensed under CC-BY-4.0 as described in [LICENSE-content](LICENSE-content).
|
|
166
|
+
|
|
167
|
+
## Community
|
|
168
|
+
|
|
169
|
+
- [Contributing](CONTRIBUTING.md) · [RFC process](formalization/README.md) · [Governance](GOVERNANCE.md) · [Maintainers](MAINTAINERS.md)
|
|
170
|
+
- [Code of Conduct](CODE_OF_CONDUCT.md) · [Security policy](SECURITY.md) · [Support](SUPPORT.md)
|
|
171
|
+
|
|
172
|
+
## Links
|
|
173
|
+
|
|
174
|
+
- Website: <https://tvl-lang.org>
|
|
175
|
+
- Documentation: <https://tvl-lang.org/specification>
|
|
176
|
+
- Discussions: <https://github.com/Traigent/tvl/discussions>
|
|
177
|
+
- Issues: <https://github.com/Traigent/tvl/issues>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
case_format: tvl-runtime-case/1
|
|
2
|
+
family: compatibility
|
|
3
|
+
description: check operational refuses pack
|
|
4
|
+
spec_refs:
|
|
5
|
+
- formalization/rfc-0003-runtime-requirements-monitors-responses.md#5.1
|
|
6
|
+
- formalization/rfc-0003-runtime-requirements-monitors-responses.md#11.2
|
|
7
|
+
input:
|
|
8
|
+
kind: toolchain
|
|
9
|
+
entrypoint: tvl-check-operational
|
|
10
|
+
reader: v1_3
|
|
11
|
+
expected:
|
|
12
|
+
error: unsupported_construct
|
|
13
|
+
construct: tvl_pack
|
|
14
|
+
exit_code: 2
|
|
15
|
+
pack:
|
|
16
|
+
tvl_version: '1.3'
|
|
17
|
+
pack:
|
|
18
|
+
module: test_pack
|
|
19
|
+
requirements: []
|
|
20
|
+
monitors: []
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
case_format: tvl-runtime-case/1
|
|
2
|
+
family: compatibility
|
|
3
|
+
description: check structural refuses pack
|
|
4
|
+
spec_refs:
|
|
5
|
+
- formalization/rfc-0003-runtime-requirements-monitors-responses.md#5.1
|
|
6
|
+
- formalization/rfc-0003-runtime-requirements-monitors-responses.md#11.2
|
|
7
|
+
input:
|
|
8
|
+
kind: toolchain
|
|
9
|
+
entrypoint: tvl-check-structural
|
|
10
|
+
reader: v1_3
|
|
11
|
+
expected:
|
|
12
|
+
error: unsupported_construct
|
|
13
|
+
construct: tvl_pack
|
|
14
|
+
exit_code: 2
|
|
15
|
+
pack:
|
|
16
|
+
tvl_version: '1.3'
|
|
17
|
+
pack:
|
|
18
|
+
module: test_pack
|
|
19
|
+
requirements: []
|
|
20
|
+
monitors: []
|