@jjanczur/tyran 0.1.0

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 (54) hide show
  1. package/.claude-plugin/marketplace.json +22 -0
  2. package/.claude-plugin/plugin.json +22 -0
  3. package/CHANGELOG.md +245 -0
  4. package/LICENSE +201 -0
  5. package/README.md +468 -0
  6. package/agents/.gitkeep +0 -0
  7. package/agents/implementer.md +60 -0
  8. package/agents/retro.md +88 -0
  9. package/agents/reviewer.md +55 -0
  10. package/agents/scout.md +60 -0
  11. package/bin/tyran.mjs +172 -0
  12. package/hooks/HOOK-CONTRACT-MEASURED.md +377 -0
  13. package/hooks/hooks.json +83 -0
  14. package/hooks/scripts/.gitkeep +0 -0
  15. package/hooks/scripts/evidence-gate.mjs +705 -0
  16. package/hooks/scripts/hook-io.mjs +813 -0
  17. package/hooks/scripts/policy-gate.mjs +1402 -0
  18. package/hooks/scripts/pre-compact.mjs +211 -0
  19. package/hooks/scripts/retro-gate.mjs +191 -0
  20. package/hooks/scripts/secrets-gate.mjs +1683 -0
  21. package/hooks/scripts/session-start.mjs +358 -0
  22. package/hooks/scripts/write-guard.mjs +475 -0
  23. package/package.json +52 -0
  24. package/scripts/desc-budget.mjs +139 -0
  25. package/scripts/doctor.mjs +1267 -0
  26. package/scripts/hooks-check.mjs +1312 -0
  27. package/scripts/invisible.mjs +346 -0
  28. package/scripts/journal.mjs +747 -0
  29. package/scripts/project.mjs +981 -0
  30. package/scripts/scan-control-chars.mjs +547 -0
  31. package/scripts/scan-repo.mjs +287 -0
  32. package/scripts/schema.mjs +467 -0
  33. package/scripts/stop-check.mjs +89 -0
  34. package/scripts/tiers.mjs +324 -0
  35. package/scripts/yaml-lite.mjs +383 -0
  36. package/skills/browser-check/SKILL.md +118 -0
  37. package/skills/code-review/SKILL.md +83 -0
  38. package/skills/deslop/SKILL.md +97 -0
  39. package/skills/doctor/SKILL.md +35 -0
  40. package/skills/fidelity-gate/SKILL.md +132 -0
  41. package/skills/hello/SKILL.md +16 -0
  42. package/skills/pr-feedback/SKILL.md +85 -0
  43. package/skills/prompt-tuning/SKILL.md +102 -0
  44. package/skills/retro/SKILL.md +69 -0
  45. package/skills/root-cause/SKILL.md +89 -0
  46. package/skills/run/SKILL.md +285 -0
  47. package/skills/setup/SKILL.md +79 -0
  48. package/skills/skill-writing/SKILL.md +99 -0
  49. package/skills/status/SKILL.md +31 -0
  50. package/templates/.gitkeep +0 -0
  51. package/templates/config.yaml +44 -0
  52. package/templates/knowledge.yaml +23 -0
  53. package/templates/policies/autonomy.yaml +61 -0
  54. package/templates/project-command/SKILL.md +16 -0
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "tyran",
3
+ "metadata": {
4
+ "description": "Marketplace for the Tyran task conductor plugin"
5
+ },
6
+ "owner": {
7
+ "name": "Jacek Janczura",
8
+ "url": "https://github.com/jjanczur"
9
+ },
10
+ "plugins": [
11
+ {
12
+ "name": "tyran",
13
+ "description": "A task conductor for Claude Code: multi-agent orchestration with an enforced evidence contract, repo-specific learning, and update-safe local evolution.",
14
+ "version": "0.1.0",
15
+ "source": "./",
16
+ "author": {
17
+ "name": "Jacek Janczura",
18
+ "url": "https://github.com/jjanczur"
19
+ }
20
+ }
21
+ ]
22
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "tyran",
3
+ "version": "0.1.0",
4
+ "description": "A task conductor for Claude Code: multi-agent orchestration with an enforced evidence contract, repo-specific learning, and update-safe local evolution.",
5
+ "author": {
6
+ "name": "Jacek Janczura",
7
+ "url": "https://github.com/jjanczur"
8
+ },
9
+ "homepage": "https://github.com/jjanczur/tyran#readme",
10
+ "repository": "https://github.com/jjanczur/tyran",
11
+ "license": "Apache-2.0",
12
+ "hooks": "./hooks/hooks.json",
13
+ "keywords": [
14
+ "orchestration",
15
+ "multi-agent",
16
+ "conductor",
17
+ "evidence",
18
+ "self-improvement",
19
+ "workflow",
20
+ "quality-gates"
21
+ ]
22
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,245 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0 — unreleased
4
+
5
+ ### Six protocol skills, and the budget raised once to pay for them
6
+
7
+ **The conductor was ordering work it had never defined.** Rule 3 required a
8
+ browser pass "navigation, clickability, a clean console" and an "optimization
9
+ pass per story"; `fidelity-gate` step 4 required computed styles dumped to
10
+ JSON; rule 4 made a human-reviewed PR the default ending. Not one of those had
11
+ a protocol behind it, so each meant whatever the agent doing it decided that
12
+ afternoon. Six skills now carry them — `browser-check`, `deslop`,
13
+ `code-review`, `root-cause`, `pr-feedback`, `skill-writing` — and each is
14
+ wired into the caller that was already asking for it. **A protocol is admitted
15
+ here only when something names it**, which is the rule that keeps the number
16
+ at fourteen rather than forty.
17
+
18
+ Two are worth calling out. `pr-feedback` exists because GitHub keeps pull
19
+ request feedback in three separate resources and the inline-comments endpoint
20
+ does not contain a review's body: measured on `cli/cli` PR #13944, which has
21
+ one review carrying written feedback and **zero** inline comments. An agent
22
+ reading one surface there reports "all feedback addressed" — true about what
23
+ it read, false about what it claims. And `skill-writing` exists because the
24
+ retrospective may commit a new skill without asking (AUTO class); that is only
25
+ safe against a standard, and it now has one, including an activation test that
26
+ proves the skill fires from a cold session.
27
+
28
+ **The description budget moved from 4000 to 5000, once, deliberately.** Every
29
+ description is loaded into every session whether its skill fires or not, which
30
+ is the context tax the README's "small curated core" row is about — and
31
+ oh-my-claudecode's issue #2943 describes a budget that was *exceeded*, not one
32
+ that was moved. So the raise came with the mechanics that make the difference
33
+ real: `DEFAULT_BUDGET` is exported and pinned by a test; `.github/workflows/
34
+ ci.yml` no longer carries its own `--budget 4000` copy, because the number
35
+ living in two places meant raising one left the other enforcing a ceiling that
36
+ existed nowhere in the repo; and raising it stays **GATED** in the autonomy
37
+ policy — a retrospective may propose a raise and may not perform one. Current
38
+ total: 4340 of 5000, and a test now fails if the README's quoted figures and
39
+ the script ever disagree.
40
+
41
+ **Two more guards, both for claims that decay silently.** The inventory test
42
+ now catches a spelled-out count ("fourteen skills and four agents") that has
43
+ gone stale, which the digit-anchored check could not see — deliberately
44
+ matching only the two phrasings that are claims about what ships, so the
45
+ footnote's historical "the first eight skills" stays correct. `agents/scout.md`
46
+ gained an output contract for mapping unfamiliar code, so recon comes back as
47
+ a one-screen map with entry points, flow and hidden coupling instead of a
48
+ directory listing.
49
+
50
+ ### The loop closes: setup, four commands, a bare `/tyran`, and a retro that fires itself
51
+
52
+ **The retrospective no longer depends on anyone remembering it.** A new `Stop`
53
+ gate refuses exactly one turn when an initiative has all its tickets merged
54
+ and nothing recorded since the last merge. It anchors on the LAST MERGE
55
+ rather than on "any retro ever", so one old retrospective cannot silence
56
+ every future initiative in a repo. It short-circuits on `stop_hook_active`
57
+ before touching the filesystem, so the worst case is one extra turn and never
58
+ a held-open session. It fails open on everything — no journal, corrupt
59
+ journal, unreadable initiative — because being unable to prove a retro is
60
+ owed is not evidence that one is owed. And declining is a complete answer:
61
+ record a `retro.entry` with `kind: skipped` and it is satisfied.
62
+
63
+ **`/tyran:setup` configures a repo from what is true about it.** The
64
+ deterministic half is `scripts/scan-repo.mjs`: package manager from
65
+ lockfiles, validation commands from the scripts the repo actually declares,
66
+ languages by weight, and an autonomy class inferred from merge history.
67
+ Everything carries provenance — value, source, confidence — so "why does this
68
+ repo think it is P2" has an answer in the file. Two refusals are deliberate:
69
+ it **never infers `P3`**, because no arrangement of files is evidence that a
70
+ person meant to let an agent deploy to production; and it returns an EMPTY
71
+ validation list rather than guessing `npm test`, because a guessed command
72
+ fails for an unrelated reason and teaches the operator that the gate is noise.
73
+
74
+ **`/tyran` without the colon.** Plugin skills are namespaced, so the
75
+ conductor is `/tyran:run`. Setup offers to install a short shim into
76
+ `.claude/skills/tyran/` that hands straight over to it — the playbook stays
77
+ in the plugin, so updates keep reaching it. Setup asks first, because a file
78
+ appearing in someone's working tree unannounced is a bad way to meet a tool.
79
+
80
+ **Reasoning effort is now a dial of its own**, alongside the model. Most
81
+ adjustments want one and not the other: a mechanical sweep on a strong model
82
+ still needs no deep reasoning, and a subtle diagnosis on the middle model
83
+ usually does. The conductor is explicitly expected to override either for a
84
+ single subtask — that is the intended use, not an escape — with every
85
+ deviation recorded as a `decision` event. What it cannot do is go under a
86
+ role floor, and when a floor corrects a request the tool says so instead of
87
+ quietly returning something else.
88
+
89
+ Also: `/tyran:status`, `/tyran:doctor`, `/tyran:retro`.
90
+
91
+ The doctor caught a defect in this very change: the platform builds no match
92
+ query for `Stop`, so the matcher first written on that entry was decorative.
93
+ It is gone, and the registry is clean.
94
+
95
+ ### The conductor and its roster ship: `/tyran:run` plus four agents
96
+
97
+ `agents/` is no longer empty. `scout`, `implementer`, `reviewer` and `retro`
98
+ are real files, carrying the playbook that has been conducting this project's
99
+ own initiatives for months — the evidence contract, the lease protocol, the
100
+ seven-point handoff, the delta rule for numeric gates, the explicit "NO
101
+ INDEPENDENT REVIEW" stamp when review had to be skipped, and the anti-bloat
102
+ filter whose correct answer is often *"I changed nothing"*. Two tool grants
103
+ are load-bearing rather than incidental: the reviewer gets no editing tools,
104
+ so it cannot patch what it is grading, and the scout is read-only apart from
105
+ the `Bash` reconnaissance needs. Neither is presented as airtight — `Bash` can
106
+ write, and the agent files say so.
107
+
108
+ `scripts/tiers.mjs` makes model choice a one-line decision. Model names now
109
+ appear in exactly ONE file; skills, agents and policies are written in role
110
+ names, so a deprecation is an edit rather than a sweep. Four tiers replace
111
+ three, because "expensive" was never one thing: `deep` buys harder reasoning,
112
+ `top` is for calls where being wrong is both costly and hard to notice. The
113
+ default routes everyday work to the middle tier. **Security review and
114
+ arbitration carry a floor** that no profile and no risk flag can push them
115
+ below — without it, `--profile eco --risk low` would have been a one-flag
116
+ downgrade of the two judgements everything downstream trusts. A missing alias
117
+ throws instead of falling back to the session default, because routing that
118
+ silently does nothing is indistinguishable from routing that works.
119
+
120
+ `scripts/stop-check.mjs` gives the operator a brake that needs no session:
121
+ `echo reason > .tyran/STOP` and the conductor halts before its next spawn or
122
+ merge. It is the one reader in this codebase that **fails closed** — an
123
+ unreadable STOP, a STOP that is a directory, an empty STOP all stop — because
124
+ a brake that releases itself when damaged is not a brake. `.tyran/STOP` is
125
+ KERNEL in the shipped policy, and the docs name the hole that leaves. The idea
126
+ is adapted from pro-workflow's file kill-switch; the code and semantics are
127
+ ours.
128
+
129
+ The README stops under-claiming in three places and over-claiming in one: the
130
+ principle that read *"autonomy … never self-escalated"* now says what was
131
+ measured instead.
132
+
133
+ ### The enforcement epic is complete: five hooks, and a doctor that catches a dead one
134
+
135
+ `policy-gate.mjs` turns the autonomy classes into a refusal: path classes
136
+ (AUTO/GATED/KERNEL), a deployment class for `git push`, and one narrow rule on
137
+ READS. The read rule exists because a neighbouring project's `.env` was pulled
138
+ into a session here in full, unasked — the secrets gate defends PUBLICATION,
139
+ and that leak arrived by a READ.
140
+
141
+ `write-guard.mjs` keeps a control character out of a file on every writing
142
+ tool, MCP servers included, and decodes shell escapes so `printf '\U000E0041'`
143
+ stops being the way around it. `hooks-check.mjs` answers the question the
144
+ plugin could not answer about itself: is a declared gate actually able to fire?
145
+ It reports a missing file, a lost execute bit, a matcher that matches nothing,
146
+ and — measured from the platform's own entry schema — the four keys that
147
+ silently disarm a gate while everything else still looks healthy.
148
+
149
+ Named honestly: the doctor DETECTS, it does not ENFORCE. It cannot refuse
150
+ anything.
151
+
152
+ ### Banner replaced
153
+
154
+ The hero image is now the code-forging hall: a conductor and a floor of agent
155
+ workstations, each screen showing its own state — 65% done, a critical logic
156
+ failure, data gathering stalled, self-improvement required. It says what the
157
+ product is about better than the pyramid did: the state is on the wall, not in
158
+ somebody's summary.
159
+
160
+ ### README: claims narrowed to what exists
161
+
162
+ Three bullets described a retrospective agent, a delta-review agent and
163
+ role-based cost routing in the present tense. None of them has any code, and
164
+ `agents/` is empty — scout, implementer and reviewer are a design, not a file.
165
+ They are marked as designed-not-built now. The status box lists shipped versus
166
+ unbuilt, the roadmap ticks the two epics that are done, and the comparison
167
+ table flips three rows from committed to shipped.
168
+
169
+ One claim was not merely early but false, and the review disproved it by
170
+ measurement: *"deployment autonomy classes are never self-escalated."* The file
171
+ holding the class is GATED, not KERNEL, so an agent with a broad allow-list can
172
+ raise it in the main loop. The README says that now.
173
+
174
+ ### The evidence contract is now a gate, not a request
175
+
176
+ `hooks/scripts/evidence-gate.mjs` runs on `SubagentStop` and refuses a report
177
+ from an implementer or a reviewer that carries no raw command output. The
178
+ refusal names what to add and reaches the agent's context, which takes another
179
+ turn.
180
+
181
+ **It blocks SILENCE, not FORGERY** — an invented `232 passed / 0 failed` walks
182
+ through it. See [`docs/evidence-gate.md`](docs/evidence-gate.md) for the
183
+ criterion, the roles it binds, the recorded `EVIDENCE: none-required` escape
184
+ hatch, and the measurements behind all three (53 of 55 real reports from this
185
+ project's own agents pass; both misses were not reports).
186
+
187
+ Every decision, including every exemption, is written to the initiative journal
188
+ as a `gate` event, so "how often did someone opt out" is a question with an
189
+ answer. `stop_hook_active` caps the cost at one extra turn per agent.
190
+
191
+ ### Behaviour change: invisible characters are SHOWN, not deleted
192
+
193
+ Projections used to delete invisible codepoints (bidi overrides, zero-width
194
+ marks, TAG characters) from journal values. They now render them as escape
195
+ notation — `<U+202E>` — because deleting them made a poisoned value and a
196
+ clean one look identical, and **ADR-19** requires that an exclusion never be
197
+ silent.
198
+
199
+ **Do you need to regenerate `STATE.md` / `PROGRESS.md`?** Measured, both ways:
200
+
201
+ - A journal that never contained an invisible character produces
202
+ **byte-identical** projections before and after. `project.mjs --check`
203
+ stays green; nothing to do.
204
+ - A journal that *did* contain one drifts, and `--check` exits 1. That drift
205
+ is the point: the projection on disk was hiding characters that were in the
206
+ journal. Regenerate it with the command `--check` already prints:
207
+ `node scripts/project.mjs <journal.jsonl> --out-dir <dir>`.
208
+
209
+ The same rule now covers every operator-facing channel, not just the two
210
+ documents: `project.mjs` warnings on stderr, every `journal.mjs` subcommand
211
+ (as JSON `\uXXXX`, so the output still parses back identically), the
212
+ `doctor.mjs` report, the session-start context injection, `schema.mjs` and
213
+ `desc-budget.mjs`. `yaml-lite.stringify` refuses to serialize such a value at
214
+ all, since this YAML subset has no escape that survives a round trip.
215
+
216
+ - Plugin skeleton: manifest, single-plugin marketplace, directory layout.
217
+ - `/tyran:hello` installation smoke-test skill.
218
+ - CI: unit tests (`node --test`), skill description budget guard
219
+ (`scripts/desc-budget.mjs`), plugin manifest validation, gitleaks scan.
220
+ - Contributor guide with the zero-dependency / no-build-step core rule.
221
+ - Secrets gate (`hooks/scripts/secrets-gate.mjs`, `PreToolUse` / `Bash`). The
222
+ gate assembles the payload itself — objects from `git diff --raw` /
223
+ `git rev-list --objects`, contents from `git cat-file --batch`, none of
224
+ which consult `.gitattributes` — pipes it to `gitleaks stdin`, and refuses
225
+ unless the scanner reports reading exactly the bytes it was sent. It models
226
+ the shell's working directory across `cd`/`pushd`/`popd` and refuses any
227
+ movement it cannot follow rather than guessing. A push is measured against
228
+ the remote it targets, not against every remote. `gh release`/`gist` uploads
229
+ are read from disk. `--no-verify` and its abbreviations, `core.hooksPath`
230
+ overrides, `--force` pushes (not `--force-with-lease`) and `kill -9` (all
231
+ spellings, including `kill -n 9`) are refused without scanning. Suppression
232
+ files are honoured only when git tracks them. A refusal never carries the
233
+ scanner's match, elides long opaque runs in paths, and filters rule ids
234
+ through an allowlist. Declared limits, false-alarm rates and the scanner's
235
+ own measured false negatives are in `docs/hooks.md`.
236
+ - CI installs gitleaks (pinned by version and sha256) and fails if any test
237
+ was skipped, so the gate's real-binary test cannot silently not run.
238
+
239
+ ### docs (0.1.0, pre-release)
240
+
241
+ - Brand identity: hero banner (pharaoh conductor, agents building a pyramid),
242
+ README v2 with honest status labels and a receipts-footnoted comparison.
243
+ - docs/: getting-started, configuration, architecture, self-improvement, FAQ.
244
+ - Security workflow: gitleaks + semgrep (p/ci); all Actions pinned to commit
245
+ SHAs, semgrep container pinned to image digest.
package/LICENSE ADDED
@@ -0,0 +1,201 @@
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 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
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.