@antprofuse/saddle-skill 0.1.2 → 0.2.0-rc.19

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.
@@ -0,0 +1,137 @@
1
+ #!/usr/bin/env python3
2
+ """Fail closed unless every packaged Skill identity comes from one closure."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import hashlib
7
+ import json
8
+ import re
9
+ import sys
10
+ from pathlib import Path
11
+
12
+
13
+ def digest(path: Path) -> str:
14
+ return hashlib.sha256(path.read_bytes()).hexdigest()
15
+
16
+
17
+ def exactly(pattern: str, text: str, label: str) -> str:
18
+ values = re.findall(pattern, text, flags=re.MULTILINE)
19
+ if len(values) != 1:
20
+ raise SystemExit(f"identity closure invalid: {label} count={len(values)}")
21
+ return values[0]
22
+
23
+
24
+ def main() -> None:
25
+ if len(sys.argv) != 2:
26
+ raise SystemExit("usage: validate-identity-closure.py <skill-directory>")
27
+ skill = Path(sys.argv[1]).resolve()
28
+ manifest = json.loads((skill / "package-manifest.json").read_text(encoding="utf-8"))
29
+ closure_path = skill / manifest["identity_closure"]["path"]
30
+ closure = json.loads(closure_path.read_text(encoding="utf-8"))
31
+ if closure.get("schema") != "saddle-skill-identity-closure/2":
32
+ raise SystemExit("identity closure invalid: schema")
33
+ if digest(closure_path) != manifest["identity_closure"]["sha256"]:
34
+ raise SystemExit("identity closure invalid: closure digest")
35
+
36
+ source = closure["artifact_source_commit"]
37
+ snapshot = skill / "references/public-api.snapshot"
38
+ boundary = skill / "references/api-boundary.md"
39
+ machine_doc = skill / "references/machine-schema.md"
40
+ validator = skill / "scripts/validate-machine-input.sh"
41
+ observed = {
42
+ "manifest": manifest["rust"]["source_commit"],
43
+ "snapshot": exactly(r"^source_commit=([0-9a-f]{40})$", snapshot.read_text(), "snapshot source"),
44
+ "boundary": exactly(r"Facade source `([0-9a-f]{40})`", boundary.read_text(), "boundary source"),
45
+ "validator": exactly(r"rust_facade_source=([0-9a-f]{40})", validator.read_text(), "validator source"),
46
+ }
47
+ if set(observed.values()) != {source}:
48
+ raise SystemExit(f"identity closure invalid: source drift {observed}")
49
+ registry_source = closure.get("registry_artifact_source_commit")
50
+ if not re.fullmatch(r"[0-9a-f]{40}", registry_source or "") or registry_source != source:
51
+ raise SystemExit("identity closure invalid: registry/source identity mismatch")
52
+ if manifest.get("release_approval") is not False or manifest.get("publish") is not False:
53
+ raise SystemExit("identity closure invalid: incompatible registry candidate must remain unpublished")
54
+ documented_schema = exactly(
55
+ r"machine:`(saddle-approved-build/[0-9]+)`", machine_doc.read_text(), "machine schema"
56
+ )
57
+ if {documented_schema, manifest["skill"]["machine_schema"], closure["machine_schema"]} != {"saddle-approved-build/2"}:
58
+ raise SystemExit("identity closure invalid: machine schema drift")
59
+ if digest(snapshot) != closure["public_api_snapshot_sha256"]:
60
+ raise SystemExit("identity closure invalid: snapshot digest")
61
+ if digest(machine_doc) != closure["machine_schema_document_sha256"]:
62
+ raise SystemExit("identity closure invalid: machine schema digest")
63
+ if manifest["rust"]["public_api_snapshot_sha256"] != closure["public_api_snapshot_sha256"]:
64
+ raise SystemExit("identity closure invalid: manifest snapshot digest")
65
+ expected_locks = {"registry_consumer": digest(skill / "assets/registry-consumer/Cargo.lock")}
66
+ if manifest["consumer_evidence"]["approved_locks"] != expected_locks or closure["approved_locks"] != expected_locks:
67
+ raise SystemExit("identity closure invalid: approved locks")
68
+ template_root = skill / "assets/registry-consumer"
69
+ template_inputs = {
70
+ "cargo_lock": template_root / "Cargo.lock",
71
+ "cargo_manifest": template_root / "Cargo.toml",
72
+ "library": template_root / "src/lib.rs",
73
+ "generated_owner": template_root / "src/generated_artifact.rs",
74
+ "external_consumer_test": template_root / "tests/provider_consumer.rs",
75
+ "output_validator": skill / "scripts/validate-generated-project.sh",
76
+ "preflight_validator": skill / "scripts/validate-generated-preflight.sh",
77
+ }
78
+ observed_template = {name: digest(path) for name, path in template_inputs.items()}
79
+ template_identity = hashlib.sha256(
80
+ json.dumps(observed_template, separators=(",", ":")).encode()
81
+ ).hexdigest()
82
+ if closure.get("registry_consumer_template") != observed_template:
83
+ raise SystemExit("identity closure invalid: registry consumer template")
84
+ if manifest["consumer_evidence"].get("registry_consumer_template") != observed_template:
85
+ raise SystemExit("identity closure invalid: manifest registry consumer template")
86
+ if closure.get("template_identity_sha256") != template_identity or manifest["generated_static_facts"].get("template_identity_sha256") != template_identity:
87
+ raise SystemExit("identity closure invalid: template identity")
88
+ if manifest["generated_static_facts"].get("application_machine_fingerprint") != "NOT_GENERATED_SK_02":
89
+ raise SystemExit("identity closure invalid: SK-02 fabricated application fingerprint")
90
+ if manifest["consumer_evidence"].get("unified_application_sha256") != observed_template["library"] or closure.get("unified_application_sha256") != observed_template["library"]:
91
+ raise SystemExit("identity closure invalid: unified application")
92
+ if manifest["consumer_evidence"].get("unified_owner_sha256") != observed_template["generated_owner"] or closure.get("unified_owner_sha256") != observed_template["generated_owner"]:
93
+ raise SystemExit("identity closure invalid: unified owner")
94
+ if manifest.get("gate_identity") != closure.get("gate_identity"):
95
+ raise SystemExit("identity closure invalid: Gate identity")
96
+ gate = closure.get("gate_identity", {})
97
+ if not re.fullmatch(r"[0-9a-f]{40}", gate.get("d1_source_candidate", "")):
98
+ raise SystemExit("identity closure invalid: D1 source candidate")
99
+ for name, value in gate.items():
100
+ if name != "d1_source_candidate" and not re.fullmatch(r"[0-9a-f]{64}", value):
101
+ raise SystemExit(f"identity closure invalid: Gate digest {name}")
102
+ for field in (
103
+ "registry_artifact_source_commit",
104
+ "rust_candidate_manifest_sha256",
105
+ "registry_packages_sha256",
106
+ "framework_crate_sha256",
107
+ "fresh_registry_cargo_lock_sha256",
108
+ "registry_consumer_cargo_lock_sha256",
109
+ ):
110
+ if manifest["identity_closure"][field] != closure[field]:
111
+ raise SystemExit(f"identity closure invalid: {field}")
112
+ expected_packages = {
113
+ "saddle-core", "saddle-macros", "saddle-admission", "saddle-observability", "saddle-runtime",
114
+ "saddle-db", "saddle-service", "saddle-framework",
115
+ }
116
+ if set(closure.get("registry_packages_sha256", {})) != expected_packages:
117
+ raise SystemExit("identity closure invalid: registry package set")
118
+ if any(not re.fullmatch(r"[0-9a-f]{64}", value) for value in closure["registry_packages_sha256"].values()):
119
+ raise SystemExit("identity closure invalid: registry package digest")
120
+ if manifest["npm"]["version"] != "0.2.0-rc.19" or closure.get("skill_release") != "0.2.0-rc.19":
121
+ raise SystemExit("identity closure invalid: Skill candidate version")
122
+ if manifest["rust"]["requirement"] != "=0.2.0-rc.19" or closure.get("rust_release") != "0.2.0-rc.19":
123
+ raise SystemExit("identity closure invalid: Rust RC version")
124
+ installation = manifest.get("installation", {})
125
+ if installation != {
126
+ "kind": "npm-tgz",
127
+ "command": "npm install --ignore-scripts --no-audit --no-fund <exact-tgz>",
128
+ "skill_root": "node_modules/@antprofuse/saddle-skill",
129
+ "entry": "SKILL.md",
130
+ "lifecycle_scripts": False,
131
+ }:
132
+ raise SystemExit("identity closure invalid: installation entry")
133
+ print("saddle-skill-identity-closure/2: valid")
134
+
135
+
136
+ if __name__ == "__main__":
137
+ main()
@@ -0,0 +1,48 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ if [[ $# -ne 1 || ! -f "$1" ]]; then
5
+ echo "usage: validate-machine-input.sh <machine-input>" >&2
6
+ exit 64
7
+ fi
8
+ input=$1
9
+ expected_keys=(
10
+ schema status release_approval declaration_schema skill_package rust_facade
11
+ rust_facade_source rust_compatibility rust_abi_frozen public_api public_api_snapshot
12
+ generated_static_schema generator_handoff build_internal runtime_profile
13
+ signed_production_bundle final_calibration baseline declaration_sha256
14
+ public_api_snapshot_sha256 skill_sha256 package_manifest_sha256 machine_schema_sha256
15
+ api_consumer_lock_sha256 unified_consumer_lock_sha256
16
+ query_db_compile_fail_lock_sha256 raw_signal_compile_fail_lock_sha256
17
+ generated_application_sha256 unified_owner_sha256 unified_machine_fingerprint
18
+ rustc_commit contract_validation unified_consumer_validation
19
+ public_api_snapshot_validation generated_static_validation migration_compile_fail
20
+ npm_pack_dry_run
21
+ )
22
+ actual_keys_file="$(mktemp)"
23
+ expected_keys_file="$(mktemp)"
24
+ trap 'rm -f "$actual_keys_file" "$expected_keys_file"' EXIT
25
+ awk -F= 'NF < 2 || $1 !~ /^[a-z][a-z0-9_]*$/ { exit 2 } { print $1 }' "$input" |
26
+ LC_ALL=C sort >"$actual_keys_file" || {
27
+ echo "invalid machine key/value syntax" >&2
28
+ exit 1
29
+ }
30
+ printf '%s\n' "${expected_keys[@]}" | LC_ALL=C sort >"$expected_keys_file"
31
+ if [[ "$(uniq -d "$actual_keys_file" | wc -l)" -ne 0 ]] ||
32
+ ! diff -u "$expected_keys_file" "$actual_keys_file"; then
33
+ echo "unknown, duplicate, or missing machine field" >&2
34
+ exit 1
35
+ fi
36
+ grep -Fxq 'schema=saddle-approved-build/2' "$input"
37
+ grep -Fxq 'status=rc-blackbox-candidate-unpublished' "$input"
38
+ grep -Fxq 'release_approval=false' "$input"
39
+ grep -Fxq 'rust_facade_source=669162c8730e33eaf8ffc246936c3eaa216d530c' "$input"
40
+ grep -Fxq 'generated_static_schema=saddle-generated-static-facts/2' "$input"
41
+ grep -Fxq 'runtime_profile=opaque-verified-startup-plan-layout' "$input"
42
+ grep -Fxq 'signed_production_bundle=deployment-required' "$input"
43
+ grep -Fxq 'final_calibration=deployment-required' "$input"
44
+ if grep -Eq '(^|_)(capacity_profile|capacity_domain|task_storage|deadline_ms)=' "$input"; then
45
+ echo "generated machine input contains a deployment-owned field" >&2
46
+ exit 1
47
+ fi
48
+ echo "saddle-approved-build/2 machine input: rc-blackbox-candidate-unpublished"
@@ -0,0 +1,147 @@
1
+ #!/usr/bin/env python3
2
+ """Validate canonical Saddle generated managed-object peak machine facts."""
3
+
4
+ from __future__ import annotations
5
+
6
+ import re
7
+ import sys
8
+ from pathlib import Path
9
+
10
+ U64_MAX = (1 << 64) - 1
11
+ BASE_KEYS = {
12
+ "schema",
13
+ "target_pointer_width",
14
+ "runtime_profile_sha256",
15
+ "max_active_requests",
16
+ "max_waiters",
17
+ "waiter_managed_objects_peak",
18
+ "route_count",
19
+ "max_route_managed_objects_peak",
20
+ "managed_objects_peak",
21
+ "derivation",
22
+ }
23
+ ROUTE_FIELDS = {
24
+ "path",
25
+ "artifact_sha256",
26
+ "request_body_owners",
27
+ "response_reservation_owners",
28
+ "other_managed_owners",
29
+ "managed_objects_peak",
30
+ }
31
+ ROUTE_KEY = re.compile(r"route\.(\d+)\.([a-z][a-z0-9_]*)\Z")
32
+
33
+
34
+ def fail(message: str) -> None:
35
+ raise ValueError(message)
36
+
37
+
38
+ def checked(value: int, label: str) -> int:
39
+ if value < 0 or value > U64_MAX:
40
+ fail(f"{label} exceeds target usize")
41
+ return value
42
+
43
+
44
+ def number(values: dict[str, str], key: str) -> int:
45
+ text = values[key]
46
+ if not re.fullmatch(r"0|[1-9][0-9]*", text):
47
+ fail(f"{key} is not canonical unsigned decimal")
48
+ return checked(int(text), key)
49
+
50
+
51
+ def validate(path: Path) -> None:
52
+ values: dict[str, str] = {}
53
+ routes: dict[int, dict[str, str]] = {}
54
+ for line_number, raw in enumerate(path.read_text(encoding="utf-8").splitlines(), 1):
55
+ if not raw or "=" not in raw:
56
+ fail(f"line {line_number} is not canonical key=value")
57
+ key, value = raw.split("=", 1)
58
+ if key in values:
59
+ fail(f"duplicate field: {key}")
60
+ match = ROUTE_KEY.fullmatch(key)
61
+ if match:
62
+ index = int(match.group(1))
63
+ field = match.group(2)
64
+ if field not in ROUTE_FIELDS:
65
+ fail(f"unknown route field: {key}")
66
+ route = routes.setdefault(index, {})
67
+ if field in route:
68
+ fail(f"duplicate route field: {key}")
69
+ route[field] = value
70
+ elif key not in BASE_KEYS:
71
+ fail(f"unknown field: {key}")
72
+ values[key] = value
73
+
74
+ missing_base = BASE_KEYS - values.keys()
75
+ if missing_base:
76
+ fail(f"missing fields: {','.join(sorted(missing_base))}")
77
+ if values["schema"] != "saddle-managed-objects-peak/1":
78
+ fail("unsupported managed-object peak schema")
79
+ if values["target_pointer_width"] != "64":
80
+ fail("only the approved 64-bit target is supported")
81
+ if values["derivation"] != "checked(active*max_route+waiters*waiter)":
82
+ fail("unexpected derivation")
83
+
84
+ route_count = number(values, "route_count")
85
+ if route_count == 0 or set(routes) != set(range(route_count)):
86
+ fail("route set is missing, sparse, or contains an unexpected route")
87
+
88
+ route_peaks: list[int] = []
89
+ paths: set[str] = set()
90
+ for index in range(route_count):
91
+ route = routes[index]
92
+ missing = ROUTE_FIELDS - route.keys()
93
+ if missing:
94
+ fail(f"route.{index} missing fields: {','.join(sorted(missing))}")
95
+ if not route["path"].startswith("/") or route["path"] in paths:
96
+ fail(f"route.{index}.path is invalid or duplicated")
97
+ paths.add(route["path"])
98
+ if not re.fullmatch(r"[0-9a-f]{64}", route["artifact_sha256"]):
99
+ fail(f"route.{index}.artifact_sha256 is not SHA-256")
100
+
101
+ components = []
102
+ for field in (
103
+ "request_body_owners",
104
+ "response_reservation_owners",
105
+ "other_managed_owners",
106
+ ):
107
+ components.append(
108
+ number(values, f"route.{index}.{field}")
109
+ )
110
+ if components != [1, 1, 0]:
111
+ fail(f"route.{index} is not the generated linear owner shape")
112
+ peak = number(values, f"route.{index}.managed_objects_peak")
113
+ if checked(sum(components), f"route.{index} component sum") != peak:
114
+ fail(f"route.{index} peak drifted from its owner components")
115
+ route_peaks.append(peak)
116
+
117
+ maximum = max(route_peaks)
118
+ if number(values, "max_route_managed_objects_peak") != maximum:
119
+ fail("max route peak drifted")
120
+
121
+ active = number(values, "max_active_requests")
122
+ waiters = number(values, "max_waiters")
123
+ waiter_peak = number(values, "waiter_managed_objects_peak")
124
+ if waiter_peak != 0:
125
+ fail("pre-admission waiters cannot own generated route objects")
126
+ active_total = checked(active * maximum, "active managed-object product")
127
+ waiter_total = checked(waiters * waiter_peak, "waiter managed-object product")
128
+ total = checked(active_total + waiter_total, "managed-object total")
129
+ if number(values, "managed_objects_peak") != total:
130
+ fail("managed_objects_peak drifted from checked derivation")
131
+
132
+
133
+ def main() -> int:
134
+ if len(sys.argv) != 2:
135
+ print("usage: validate-managed-objects-peak.py <machine-facts>", file=sys.stderr)
136
+ return 64
137
+ try:
138
+ validate(Path(sys.argv[1]))
139
+ except (OSError, ValueError) as error:
140
+ print(f"managed-object peak invalid: {error}", file=sys.stderr)
141
+ return 1
142
+ print("saddle-managed-objects-peak/1: valid")
143
+ return 0
144
+
145
+
146
+ if __name__ == "__main__":
147
+ raise SystemExit(main())
package/LICENSE-APACHE DELETED
@@ -1,203 +0,0 @@
1
-
2
- Apache License
3
- Version 2.0, January 2004
4
- http://www.apache.org/licenses/
5
-
6
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
-
8
- 1. Definitions.
9
-
10
- "License" shall mean the terms and conditions for use, reproduction,
11
- and distribution as defined by Sections 1 through 9 of this document.
12
-
13
- "Licensor" shall mean the copyright owner or entity authorized by
14
- the copyright owner that is granting the License.
15
-
16
- "Legal Entity" shall mean the union of the acting entity and all
17
- other entities that control, are controlled by, or are under common
18
- control with that entity. For the purposes of this definition,
19
- "control" means (i) the power, direct or indirect, to cause the
20
- direction or management of such entity, whether by contract or
21
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
- outstanding shares, or (iii) beneficial ownership of such entity.
23
-
24
- "You" (or "Your") shall mean an individual or Legal Entity
25
- exercising permissions granted by this License.
26
-
27
- "Source" form shall mean the preferred form for making modifications,
28
- including but not limited to software source code, documentation
29
- source, and configuration files.
30
-
31
- "Object" form shall mean any form resulting from mechanical
32
- transformation or translation of a Source form, including but
33
- not limited to compiled object code, generated documentation,
34
- and conversions to other media types.
35
-
36
- "Work" shall mean the work of authorship, whether in Source or
37
- Object form, made available under the License, as indicated by a
38
- copyright notice that is included in or attached to the work
39
- (an example is provided in the Appendix below).
40
-
41
- "Derivative Works" shall mean any work, whether in Source or Object
42
- form, that is based on (or derived from) the Work and for which the
43
- editorial revisions, annotations, elaborations, or other modifications
44
- represent, as a whole, an original work of authorship. For the purposes
45
- of this License, Derivative Works shall not include works that remain
46
- separable from, or merely link (or bind by name) to the interfaces of,
47
- the Work and Derivative Works thereof.
48
-
49
- "Contribution" shall mean any work of authorship, including
50
- the original version of the Work and any modifications or additions
51
- to that Work or Derivative Works thereof, that is intentionally
52
- submitted to Licensor for inclusion in the Work by the copyright owner
53
- or by an individual or Legal Entity authorized to submit on behalf of
54
- the copyright owner. For the purposes of this definition, "submitted"
55
- means any form of electronic, verbal, or written communication sent
56
- to the Licensor or its representatives, including but not limited to
57
- communication on electronic mailing lists, source code control systems,
58
- and issue tracking systems that are managed by, or on behalf of, the
59
- Licensor for the purpose of discussing and improving the Work, but
60
- excluding communication that is conspicuously marked or otherwise
61
- designated in writing by the copyright owner as "Not a Contribution."
62
-
63
- "Contributor" shall mean Licensor and any individual or Legal Entity
64
- on behalf of whom a Contribution has been received by Licensor and
65
- subsequently incorporated within the Work.
66
-
67
- 2. Grant of Copyright License. Subject to the terms and conditions of
68
- this License, each Contributor hereby grants to You a perpetual,
69
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
- copyright license to reproduce, prepare Derivative Works of,
71
- publicly display, publicly perform, sublicense, and distribute the
72
- Work and such Derivative Works in Source or Object form.
73
-
74
- 3. Grant of Patent License. Subject to the terms and conditions of
75
- this License, each Contributor hereby grants to You a perpetual,
76
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
- (except as stated in this section) patent license to make, have made,
78
- use, offer to sell, sell, import, and otherwise transfer the Work,
79
- where such license applies only to those patent claims licensable
80
- by such Contributor that are necessarily infringed by their
81
- Contribution(s) alone or by combination of their Contribution(s)
82
- with the Work to which such Contribution(s) was submitted. If You
83
- institute patent litigation against any entity (including a
84
- cross-claim or counterclaim in a lawsuit) alleging that the Work
85
- or a Contribution incorporated within the Work constitutes direct
86
- or contributory patent infringement, then any patent licenses
87
- granted to You under this License for that Work shall terminate
88
- as of the date such litigation is filed.
89
-
90
- 4. Redistribution. You may reproduce and distribute copies of the
91
- Work or Derivative Works thereof in any medium, with or without
92
- modifications, and in Source or Object form, provided that You
93
- meet the following conditions:
94
-
95
- (a) You must give any other recipients of the Work or
96
- Derivative Works a copy of this License; and
97
-
98
- (b) You must cause any modified files to carry prominent notices
99
- stating that You changed the files; and
100
-
101
- (c) You must retain, in the Source form of any Derivative Works
102
- that You distribute, all copyright, patent, trademark, and
103
- attribution notices from the Source form of the Work,
104
- excluding those notices that do not pertain to any part of
105
- the Derivative Works; and
106
-
107
- (d) If the Work includes a "NOTICE" text file as part of its
108
- distribution, then any Derivative Works that You distribute must
109
- include a readable copy of the attribution notices contained
110
- within such NOTICE file, excluding those notices that do not
111
- pertain to any part of the Derivative Works, in at least one
112
- of the following places: within a NOTICE text file distributed
113
- as part of the Derivative Works; within the Source form or
114
- documentation, if provided along with the Derivative Works; or,
115
- within a display generated by the Derivative Works, if and
116
- wherever such third-party notices normally appear. The contents
117
- of the NOTICE file are for informational purposes only and
118
- do not modify the License. You may add Your own attribution
119
- notices within Derivative Works that You distribute, alongside
120
- or as an addendum to the NOTICE text from the Work, provided
121
- that such additional attribution notices cannot be construed
122
- as modifying the License.
123
-
124
- You may add Your own copyright statement to Your modifications and
125
- may provide additional or different license terms and conditions
126
- for use, reproduction, or distribution of Your modifications, or
127
- for any such Derivative Works as a whole, provided Your use,
128
- reproduction, and distribution of the Work otherwise complies with
129
- the conditions stated in this License.
130
-
131
- 5. Submission of Contributions. Unless You explicitly state otherwise,
132
- any Contribution intentionally submitted for inclusion in the Work
133
- by You to the Licensor shall be under the terms and conditions of
134
- this License, without any additional terms or conditions.
135
- Notwithstanding the above, nothing herein shall supersede or modify
136
- the terms of any separate license agreement you may have executed
137
- with Licensor regarding such Contributions.
138
-
139
- 6. Trademarks. This License does not grant permission to use the trade
140
- names, trademarks, service marks, or product names of the Licensor,
141
- except as required for reasonable and customary use in describing the
142
- origin of the Work and reproducing the content of the NOTICE file.
143
-
144
- 7. Disclaimer of Warranty. Unless required by applicable law or
145
- agreed to in writing, Licensor provides the Work (and each
146
- Contributor provides its Contributions) on an "AS IS" BASIS,
147
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
- implied, including, without limitation, any warranties or conditions
149
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
- PARTICULAR PURPOSE. You are solely responsible for determining the
151
- appropriateness of using or redistributing the Work and assume any
152
- risks associated with Your exercise of permissions under this License.
153
-
154
- 8. Limitation of Liability. In no event and under no legal theory,
155
- whether in tort (including negligence), contract, or otherwise,
156
- unless required by applicable law (such as deliberate and grossly
157
- negligent acts) or agreed to in writing, shall any Contributor be
158
- liable to You for damages, including any direct, indirect, special,
159
- incidental, or consequential damages of any character arising as a
160
- result of this License or out of the use or inability to use the
161
- Work (including but not limited to damages for loss of goodwill,
162
- work stoppage, computer failure or malfunction, or any and all
163
- other commercial damages or losses), even if such Contributor
164
- has been advised of the possibility of such damages.
165
-
166
- 9. Accepting Warranty or Additional Liability. While redistributing
167
- the Work or Derivative Works thereof, You may choose to offer,
168
- and charge a fee for, acceptance of support, warranty, indemnity,
169
- or other liability obligations and/or rights consistent with this
170
- License. However, in accepting such obligations, You may act only
171
- on Your own behalf and on Your sole responsibility, not on behalf
172
- of any other Contributor, and only if You agree to indemnify,
173
- defend, and hold each Contributor harmless for any liability
174
- incurred by, or claims asserted against, such Contributor by reason
175
- of your accepting any such warranty or additional liability.
176
-
177
- END OF TERMS AND CONDITIONS
178
-
179
- APPENDIX: How to apply the Apache License to your work.
180
-
181
- To apply the Apache License to your work, attach the following
182
- boilerplate notice, with the fields enclosed by brackets "[]"
183
- replaced with your own identifying information. (Don't include
184
- the brackets!) The text should be enclosed in the appropriate
185
- comment syntax for the file format. We also recommend that a
186
- file or class name and description of purpose be included on the
187
- same "printed page" as the copyright notice for easier
188
- identification within third-party archives.
189
-
190
- Copyright [yyyy] [name of copyright owner]
191
-
192
- Licensed under the Apache License, Version 2.0 (the "License");
193
- you may not use this file except in compliance with the License.
194
- You may obtain a copy of the License at
195
-
196
- http://www.apache.org/licenses/LICENSE-2.0
197
-
198
- Unless required by applicable law or agreed to in writing, software
199
- distributed under the License is distributed on an "AS IS" BASIS,
200
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
- See the License for the specific language governing permissions and
202
- limitations under the License.
203
-
package/LICENSE-MIT DELETED
@@ -1,22 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Saddle contributors
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
-