saikou 1.2.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.
Files changed (47) hide show
  1. saikou-1.2.0/.gitignore +30 -0
  2. saikou-1.2.0/CHANGELOG.md +226 -0
  3. saikou-1.2.0/LICENSE +177 -0
  4. saikou-1.2.0/NOTICE +4 -0
  5. saikou-1.2.0/PKG-INFO +360 -0
  6. saikou-1.2.0/README.md +321 -0
  7. saikou-1.2.0/docs/business/README.md +16 -0
  8. saikou-1.2.0/pyproject.toml +54 -0
  9. saikou-1.2.0/qa/site/README.md +34 -0
  10. saikou-1.2.0/qa/site/tests/site.spec.js +190 -0
  11. saikou-1.2.0/saikou/__init__.py +44 -0
  12. saikou-1.2.0/saikou/__main__.py +5 -0
  13. saikou-1.2.0/saikou/api.py +329 -0
  14. saikou-1.2.0/saikou/catalog.py +415 -0
  15. saikou-1.2.0/saikou/cli.py +400 -0
  16. saikou-1.2.0/saikou/engine.py +2999 -0
  17. saikou-1.2.0/saikou/llm.py +486 -0
  18. saikou-1.2.0/saikou/sarif.py +73 -0
  19. saikou-1.2.0/saikou/server.py +243 -0
  20. saikou-1.2.0/saikou/service.py +468 -0
  21. saikou-1.2.0/saikou/verify.py +457 -0
  22. saikou-1.2.0/saikou/web/app.css +336 -0
  23. saikou-1.2.0/saikou/web/app.js +1368 -0
  24. saikou-1.2.0/saikou/web/index.html +303 -0
  25. saikou-1.2.0/saikou/web/logo.svg +10 -0
  26. saikou-1.2.0/saikou/web/sample.json +7 -0
  27. saikou-1.2.0/saikou/webassets.py +43 -0
  28. saikou-1.2.0/saikou_harden.py +31 -0
  29. saikou-1.2.0/tests/fixtures/demo/after_A_fake.py +20 -0
  30. saikou-1.2.0/tests/fixtures/demo/after_B_partial.py +21 -0
  31. saikou-1.2.0/tests/fixtures/demo/after_C_real.py +27 -0
  32. saikou-1.2.0/tests/fixtures/demo/before.py +20 -0
  33. saikou-1.2.0/tests/fixtures/suppression_oracle_golden.json +1704 -0
  34. saikou-1.2.0/tests/fixtures/suppression_oracle_js_golden.json +768 -0
  35. saikou-1.2.0/tests/test_api.py +206 -0
  36. saikou-1.2.0/tests/test_catalog.py +51 -0
  37. saikou-1.2.0/tests/test_cli.py +261 -0
  38. saikou-1.2.0/tests/test_config_weakening.py +53 -0
  39. saikou-1.2.0/tests/test_engine.py +656 -0
  40. saikou-1.2.0/tests/test_harden.py +101 -0
  41. saikou-1.2.0/tests/test_providers.py +647 -0
  42. saikou-1.2.0/tests/test_server.py +242 -0
  43. saikou-1.2.0/tests/test_service.py +213 -0
  44. saikou-1.2.0/tests/test_site.py +194 -0
  45. saikou-1.2.0/tests/test_suppression_oracle.py +100 -0
  46. saikou-1.2.0/tests/test_suppression_oracle_js.py +84 -0
  47. saikou-1.2.0/tests/test_verify.py +70 -0
@@ -0,0 +1,30 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ .venv/
4
+ venv/
5
+ build/
6
+ dist/
7
+ *.egg-info/
8
+ .pytest_cache/
9
+
10
+ # local secrets and config - never commit
11
+ .env
12
+ .env.*
13
+ !.env.example
14
+ *.key
15
+ *.pem
16
+
17
+ # local scratch
18
+ saikou.sarif
19
+ .claude/launch.json
20
+ qa/site/node_modules/
21
+ qa/site/test-results/
22
+ qa/site/playwright-report/
23
+ qa/site/lhci-report/
24
+
25
+ # private notes and launch material - never published
26
+ internal/
27
+ CLAUDE.local.md
28
+
29
+ # agent worktrees (Claude Code)
30
+ .claude/worktrees/
@@ -0,0 +1,226 @@
1
+ # Changelog
2
+
3
+ ## 1.2.0 - 2026-11-08
4
+
5
+ ### Added
6
+ - Hosted API v1 (`saikou.api`, rebuilt on the shared `saikou.service`): `POST /v1/verify`,
7
+ `POST /v1/verify/batch`, `GET /v1/checks` (public) and `GET /healthz`; `/harden/intake` and
8
+ `/harden/apply` stay. One error shape, `{"error": {"code", "message"}}`. Bearer tokens from
9
+ `API_TOKENS` fail closed unless `ENVIRONMENT=dev`; rate limit per token; request bodies are
10
+ capped by `Content-Length` and by stream. `/harden/apply` answers 503 without a model key.
11
+ The hosted service never touches the file system or git. (`e4e2120`)
12
+ - Playground at `/` of the hosted API: the web app with Verify and Checks only. (`e4e2120`)
13
+ - Local app, `saikou ui` (`saikou.server`, `saikou/web/`): standard library only, binds
14
+ `127.0.0.1`, one-time key in the URL fragment, Host and Origin checks. Screens Verify, Gate,
15
+ Harden, Checks and History; light and dark, English and Dutch; no third-party requests.
16
+ Harden writes exactly the output that was reviewed, and its result includes a unified diff.
17
+ Checked in a browser at desktop and 375 px width, in both themes and both languages, with
18
+ the fixes from that pass. (`e4e2120`, `e51fd3a`)
19
+ - `Dockerfile` and `.dockerignore` for the hosted API: runs as non-root; no `.env`,
20
+ `internal/` or `.git` in the image. (`e4e2120`)
21
+ - saikou.tech: canonical URLs, Open Graph and Twitter tags, hreflang pairs, JSON-LD
22
+ `SoftwareApplication` (no ratings), `sitemap.xml` and `robots.txt`; `scripts/check_site.py`
23
+ fails on a missing or broken one. (`38ad8f5`)
24
+ - README badge `site/assets/fixes-checked-with-saikou.svg`: says "checked", never "secure".
25
+ (`38ad8f5`)
26
+ - JavaScript and TypeScript suppressions, found by `scripts/suppression_oracle_js.py` (761 pairs;
27
+ ESLint 9 with eslint-plugin-security, the TypeScript compiler and semgrep, all executed). Pairs in
28
+ which a tool honoured the marker and Saikou did not block went from 112 to 12, and those 12 are
29
+ TypeScript directives that are a warning on purpose:
30
+ - ESLint and TypeScript directives in block comments (`/* eslint-disable */`, `/* @ts-ignore */`)
31
+ were not counted, nor `@ts-expect-error`, `/* nosemgrep */` or `/* NOSONAR */`;
32
+ - an ESLint directive without a rule list silences every rule, the security ones included, and
33
+ was only a warning: it now blocks where it covers a line that holds a risky call (`eval`,
34
+ `new Function`, child_process, `fs`, `vm`, `innerHTML`, a non-literal `require`, ...);
35
+ - a marker moved onto another line, count unchanged, is reported (per line, with the
36
+ enclosing blocks as context).
37
+ - A suppression coverage statement that is generated, not written:
38
+ - `scripts/suppression_oracle.py` generates 1,697 before/after pairs (spellings, positions,
39
+ line endings and encodings, strings against comments, unreadable files, moved markers) and
40
+ asks bandit, ruff, semgrep (executed), flake8 (pattern from its wheel), sonar-python and
41
+ CodeQL (patterns from their sources) whether each honours the new marker;
42
+ - `tests/test_suppression_oracle.py` runs Saikou on every pair and requires the verdict frozen
43
+ in `tests/fixtures/suppression_oracle_golden.json`; a marker a tool honours and Saikou does
44
+ not report fails it, and so does any unexpected change of verdict in either direction;
45
+ - `docs/conformance/suppression-coverage.md` and `.nl.md` state the result with its scope and
46
+ are generated from the golden file; the test fails when they are out of date;
47
+ - `.github/workflows/oracle.yml` asks the executed tools again every week (Python and
48
+ JavaScript/TypeScript) and fails when a new version reads a marker differently from the
49
+ frozen answer;
50
+ - `scripts/check_site.py` bans unscoped claims about what the checks catch ("never misses",
51
+ "catches every", "guarantee", "volledige dekking", ...), except when they deny a promise;
52
+ README and both home pages say how the check is verified and link to the statement.
53
+
54
+ ### Fixed
55
+ - `suppression_introduced` no longer counts a Python comment marker (`# nosec`, `type: ignore`,
56
+ `pylint: disable`, ...) that sits inside a string literal, such as fake-fix test data or help
57
+ text: bandit 1.7.3+ reads `nosec` from comment tokens only. flake8 `noqa` and `nosemgrep`
58
+ still count anywhere on the line, because those tools match the raw line. Python that does not
59
+ tokenize, does not parse on the running interpreter, or uses lone CR line endings is counted as
60
+ text, as before.
61
+ - `suppression_introduced` now recognises suppressions it missed: `# NOSONAR` and an upper-case
62
+ `# NOSEC` (sonar-python), `# lgtm`, `lgtm[...]` and `codeql[...]` in any case (CodeQL), and
63
+ bandit's marker glued to a test id (`# nosecB602`).
64
+ - The elision check no longer misses a real `... existing code ...` comment:
65
+ - in Python after a line-separator character (form feed, U+2028, ...) earlier in the file;
66
+ - in a Python 3.12+ f-string replacement field;
67
+ - in JavaScript after an apostrophe in a comment, a quote inside a regex literal, or quotes
68
+ in JSX text;
69
+ - when the input could not be scanned.
70
+ - JavaScript guard checks now use a real left-to-right scanner instead of separate regexes.
71
+ This fixes false blocks from `//` inside strings (`"http://x"`), JSX closing tags, `x! / y`,
72
+ `i++ / y`, template substitutions and spreads (`...safe`), and an async class method no
73
+ longer makes an unrelated bare call of the same name "async".
74
+ - The `keep the existing code/file/function/...` elision marker no longer fires on prose such
75
+ as "keep the existing file on disk if it's newer" or "keep the existing code style". It counts
76
+ when it ends the clause, or is followed by `here`, `below`, `above`, `unchanged`, `as is`,
77
+ `intact` or `untouched`. Known limit: a placeholder that continues in prose ("keep the existing
78
+ implementation from before") is not caught by this marker.
79
+ - JavaScript guard-name patterns matched `can`/`is`/`has`/`safe`/`user` followed by any letter,
80
+ because `(?i)` also made the capital case-insensitive: `reader.cancel(e).catch(...)` was a
81
+ floated authorisation guard, and `hash(...)`, `issue(...)` and `isolate(...)` were guards. Only
82
+ camelCase names (`canWrite`, `isValid`) count now. Measured on 25,922 JS/TS files: 13 findings
83
+ gone, all `.cancel().catch(...)`, none added.
84
+ - A pattern added in this cycle that was quadratic on very long lines (a 4.6 MB base64 line
85
+ took 90 s) is now linear.
86
+ - Change gating no longer blocks a newly added empty file such as `tests/__init__.py`.
87
+ - Suppressions the real tools honour that `suppression_introduced` did not count, found by
88
+ `scripts/suppression_oracle.py` (1,697 before/after pairs; bandit 1.9.4, ruff 0.17.1 and
89
+ semgrep 1.181.0 executed, flake8 read from its wheel, sonar-python and CodeQL taken over from
90
+ their sources). Pairs in which a tool honours the marker and Saikou said nothing went from 72 to 0:
91
+ - a word glued to bandit's marker (`# nosecure`, `# nosec_lines`): bandit reads it as a bare
92
+ marker that skips everything on the line. An earlier fix in this cycle excluded these on a
93
+ wrong reading of bandit; checked by running bandit 1.9.4;
94
+ - semgrep's marker in upper case and its short form (`# nosem`);
95
+ - CodeQL's bare annotation after a semicolon followed by `(`, `=` or `.`;
96
+ - flake8's marker in upper case or with a word glued to it (style suppressions, so a warning
97
+ when gating);
98
+ - `usedforsecurity` set to `(False)`, `0`, `None`, a name, or on the next line: bandit's
99
+ weak-hash check only fires on the constant True (a warning when gating, as for `=False`);
100
+ - a marker that only shows after decoding the declared source encoding (`# coding: utf-7`,
101
+ where `+ACM-` is a hash sign).
102
+ A second round of the oracle, with moved markers, wrapped lines and long lines added:
103
+ - a marker moved onto code that had none, while the number of markers stays the same (from
104
+ one sink to another, or to an identical statement in the same function), is reported. The
105
+ check is per Python statement (enclosing names, syntax, number among identical ones), so
106
+ re-wrapping a statement, reordering functions or fixing a sink and keeping its marker is not;
107
+ - a bare `noqa` on a statement that makes a call bandit reports (subprocess, `os.system`,
108
+ `eval`, `yaml.load`, md5/sha1, pickle, XML parsers, `random`, ..., import aliases
109
+ resolved) blocks when gating: flake8, ruff and sonar-python honour it for the security
110
+ finding. On an import line or with only style codes it stays a warning;
111
+ - a `noqa: S602` behind a long line blocked nothing: the hit was classified on an excerpt cut
112
+ at 120 characters;
113
+ - `usedforsecurity=` other than True on password material (`hashlib.md5(password, ...)`)
114
+ blocks when gating; on other data it stays a warning, being the documented remedy;
115
+ - a ` nosemgrep` or ` nosem` anywhere on the line of a statement that makes a security call,
116
+ a string included: semgrep ignores the finding (executed; its Python constants had no
117
+ comment anchor, but nothing said so for the real matching). Elsewhere it is prose.
118
+
119
+ ### Changed
120
+ - `hardcoded_secret_material` is a warning, not a block, when gating a change to a test file
121
+ (`test/`, `tests/`, `testing/`, `test_*.py`, `*_test.py`, `conftest.py`, `tests.py`;
122
+ repository-relative paths only). Recognisable provider keys (AWS, GitHub, Slack, Stripe live,
123
+ Google, OpenAI, Anthropic) and private keys still block. Verifying a claimed fix always blocks.
124
+ - The `analyser` extra, the `dev` extra and the GitHub Action now require `bandit>=1.7.3`:
125
+ 1.7.0 to 1.7.2 also honoured `# nosec` inside string literals.
126
+
127
+ ### Security
128
+ - Change gating no longer skips a changed file whose new version it cannot check. A file in
129
+ a checked language, or an analyser configuration file, with a NUL byte in its first 8 KB,
130
+ more than 1,000,000 bytes, unreadable in the work tree, or now a symbolic link or a
131
+ submodule, used to be listed as skipped (or, for a symlink replaced by a file, not listed
132
+ at all) while the gate passed, so one NUL byte in a comment let any change through. It now
133
+ blocks with the new check `content_not_checked`, reported with the `asserted` tier because
134
+ nothing was parsed, in `saikou diff`, the GitHub Action and the local app's Gate screen;
135
+ with `--include-unknown` this holds for every file. UTF-16 and UTF-32 files with a
136
+ byte-order mark are read as text. When only the old version is unreadable, the new one is
137
+ checked as if the file were new. A file that is meant to be like this is left out with a
138
+ pathspec (`-- . ':(exclude)vendor/bundle.js'`, Action input `paths`); the new Action input
139
+ `warn-only` passes `--warn-only`, which demotes a check for every file. Files in languages
140
+ Saikou does not check are still skipped and listed.
141
+ - `saikou harden` and `saikou ui` read only provider keys, model names, `LLM_TIMEOUT_S`,
142
+ `LLM_MAX_OUTPUT_TOKENS` and the `--api-key-env` variable from `.env`. They used to set
143
+ every name in the file, so a `.env` in someone else's repository could point
144
+ `OLLAMA_BASE_URL` or `LLM_BASE_URL` at its own server and receive your key from your
145
+ environment, choose another provider with `LLM_PROVIDER`, or set a proxy, a CA bundle,
146
+ `PATH` or git settings. A run whose endpoint is set only in `.env`, to anything but the
147
+ preset's default, now stops and says to use the environment or `--base-url`.
148
+ `--api-key-env` naming an endpoint variable is refused. In `.env.example`, `LLM_BASE_URL` is
149
+ now commented out (only the hosted API reads it from that file).
150
+ - Plain `http` is accepted only when the parsed host is `localhost` or a loopback address.
151
+ The old prefix test also accepted `http://localhost.example.com`, so the key could go
152
+ unencrypted to another domain. A base URL with a user name or password, a backslash, a
153
+ space, a control character, a percent-encoded host, a query or a fragment is refused, and
154
+ the request goes to the URL rebuilt from the checked parts. `saikou harden` checks the URL
155
+ before it names it, and says "nothing leaves it" only for a loopback endpoint.
156
+ - The model call no longer follows a redirect. urllib followed a 301, 302 or 303 to any
157
+ host, from https to plain http too, with the `Authorization` header and so the key, and
158
+ used whatever came back as the model's answer. A redirect is now an error that says to set
159
+ the base URL to the final address. Nothing that worked stops working: a followed POST
160
+ became a GET without a body, and a 307 or 308 already failed.
161
+ - A model on this machine (`localhost` or a loopback address) is never reached through a
162
+ proxy. With `HTTP_PROXY` in the environment, the request for a local model, key
163
+ included, went in plain http to the proxy (and a proxy on another machine could not even
164
+ reach the local server).
165
+ Remote endpoints still use the environment's proxy.
166
+ - The hosted API's `model_error` no longer passes on the provider's own message (it could
167
+ name part of the server's key or its provider account): it says only which HTTP status the
168
+ provider returned. `saikou harden` and the local app still show the provider's reason, now
169
+ without masked or partial forms of the key (`sk-proj-****abcd`, `sk-...abcd`, "ending in
170
+ abcd", any four characters in a row of the key's secret part, glued to another word or
171
+ not, any case; a placeholder key such as `ollama` is only removed as a whole), and read at
172
+ most 64 KB of it. Its 503 `model_not_configured` no longer quotes the values of the
173
+ server's settings.
174
+ - `--provider local` no longer sends the Ollama cloud key: it reads its own, normally unset,
175
+ `OLLAMA_LOCAL_API_KEY`, so `OLLAMA_API_KEY` does not go in plain http to whatever listens
176
+ on the local port. Looking up the installed local models (`/api/tags`) asks only this
177
+ machine, after the URL is checked, without a proxy or a redirect. With `--model` (or the
178
+ app's model field) there is no lookup; without one, a local URL that is not this machine
179
+ is refused with a message to name the model, and the app shows "not on this machine".
180
+ - A malformed answer (a broken status line or header, an error body that breaks off, a
181
+ deeply nested or non-text body, an answer over 8 MB) is reported as a provider error instead of escaping as a Python
182
+ exception, whose text could hold the key.
183
+
184
+ ## 1.1.0 - 2026-10-08
185
+
186
+ First packaged release (`pip install saikou`).
187
+
188
+ ### Added
189
+ - `saikou` command line: `verify`, `diff` (git: work tree, `--staged`, or `--head`),
190
+ `harden` (bring-your-own-key, writes only when verification passes), `selftest`.
191
+ - Output as text, JSON or SARIF 2.1.0; Markdown job summary (`--summary`).
192
+ - Two modes: fix verification (`verify`) and change gating (`diff`), with a
193
+ measured policy for each.
194
+ - Analyser-config weakening detection for changed config files (bandit, ruff/flake8
195
+ `S` rules, semgrep/gitleaks/trivy ignore files, ESLint security rules, Sonar, gosec).
196
+ - `saikou harden --provider openai|ollama|local`: Ollama cloud (`OLLAMA_API_KEY`, default
197
+ model `gpt-oss:120b`) and local Ollama models without a key; dotenv loading (`.env`,
198
+ `--env-file`); plain-JSON mode with the schema in the prompt where strict schemas are
199
+ unavailable.
200
+ - GitHub Action (`action.yml`), pre-commit hook, Claude Code plugin and marketplace.
201
+ - `scripts/fp_corpus.py` and published measurements in `docs/measurements/`.
202
+
203
+ ### Changed
204
+ - Engine moved into the `saikou` package; `saikou_harden.py` remains as a shim.
205
+ - Unparseable Python output is a hard fail in every entry point, not only the API.
206
+ - Elision and analyser-config checks are delta-aware (pre-existing text is not flagged);
207
+ elision markers inside string literals are ignored for Python and JS/TS.
208
+ - Whole-file checks (unwired guards, shared-sink paths, JS guards) only block what the
209
+ change introduced, unless a fix for that threat class was claimed.
210
+ - Language names and file extensions are normalised (`py`, `.ts`, `C#`, ...).
211
+ - Free-text threat labels ("command injection", "weak hash") map onto the threat enum,
212
+ and the user's own threat model counts as claimed.
213
+ - Ledger claims list only the checks that actually ran for the language.
214
+ - API: refuses to serve without tokens unless `ENVIRONMENT=dev`; single-use sessions;
215
+ rate limit; bounded model timeout and output tokens; truncated replies rejected;
216
+ docs endpoints off in production; no httpx dependency.
217
+
218
+ ### Fixed
219
+ - False positives measured on real code: `token_type = '...'`, registry paths,
220
+ environment-variable names, dotted identifiers and namespace salts no longer read as
221
+ hardcoded secrets; JS ternaries on a guard are not unused guards.
222
+
223
+ ## 1.0.0 - 2026-09-03
224
+
225
+ Single-file engine `saikou_harden.py` with the evidence ledger, HTTP service and the
226
+ `code-hardener` Claude Code agent.
saikou-1.2.0/LICENSE ADDED
@@ -0,0 +1,177 @@
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
saikou-1.2.0/NOTICE ADDED
@@ -0,0 +1,4 @@
1
+ Saikou
2
+ Copyright 2026 The Saikou authors (https://saikou.tech)
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).