strata-kb 1.0.1__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.
- strata_kb-1.0.1/.gitignore +33 -0
- strata_kb-1.0.1/CHANGELOG.md +261 -0
- strata_kb-1.0.1/LICENSE +202 -0
- strata_kb-1.0.1/PKG-INFO +1152 -0
- strata_kb-1.0.1/README.md +1096 -0
- strata_kb-1.0.1/pyproject.toml +142 -0
- strata_kb-1.0.1/src/strata_kb/__init__.py +6 -0
- strata_kb-1.0.1/src/strata_kb/acquality.py +314 -0
- strata_kb-1.0.1/src/strata_kb/assetcmd.py +323 -0
- strata_kb-1.0.1/src/strata_kb/assetstore.py +632 -0
- strata_kb-1.0.1/src/strata_kb/build.py +213 -0
- strata_kb-1.0.1/src/strata_kb/cipublish.py +184 -0
- strata_kb-1.0.1/src/strata_kb/cli.py +2916 -0
- strata_kb-1.0.1/src/strata_kb/codeingest/__init__.py +11 -0
- strata_kb-1.0.1/src/strata_kb/codeingest/core.py +1299 -0
- strata_kb-1.0.1/src/strata_kb/codeingest/extractors/__init__.py +23 -0
- strata_kb-1.0.1/src/strata_kb/codeingest/extractors/_envkeys.py +167 -0
- strata_kb-1.0.1/src/strata_kb/codeingest/extractors/_lines.py +34 -0
- strata_kb-1.0.1/src/strata_kb/codeingest/extractors/_mdcells.py +40 -0
- strata_kb-1.0.1/src/strata_kb/codeingest/extractors/api.py +360 -0
- strata_kb-1.0.1/src/strata_kb/codeingest/extractors/commands.py +1045 -0
- strata_kb-1.0.1/src/strata_kb/codeingest/extractors/deps.py +971 -0
- strata_kb-1.0.1/src/strata_kb/codeingest/extractors/integrations.py +312 -0
- strata_kb-1.0.1/src/strata_kb/codeingest/extractors/schema.py +1259 -0
- strata_kb-1.0.1/src/strata_kb/codeingest/extractors/services.py +1090 -0
- strata_kb-1.0.1/src/strata_kb/codeingest/extractors/tree.py +439 -0
- strata_kb-1.0.1/src/strata_kb/config.py +63 -0
- strata_kb-1.0.1/src/strata_kb/conventions.py +221 -0
- strata_kb-1.0.1/src/strata_kb/diff.py +174 -0
- strata_kb-1.0.1/src/strata_kb/dockersetup.py +136 -0
- strata_kb-1.0.1/src/strata_kb/doctor.py +1029 -0
- strata_kb-1.0.1/src/strata_kb/embed.py +82 -0
- strata_kb-1.0.1/src/strata_kb/errors.py +44 -0
- strata_kb-1.0.1/src/strata_kb/federation.py +337 -0
- strata_kb-1.0.1/src/strata_kb/ghapp.py +131 -0
- strata_kb-1.0.1/src/strata_kb/ghio.py +68 -0
- strata_kb-1.0.1/src/strata_kb/gitio.py +404 -0
- strata_kb-1.0.1/src/strata_kb/hashsync.py +83 -0
- strata_kb-1.0.1/src/strata_kb/httpio.py +41 -0
- strata_kb-1.0.1/src/strata_kb/hub.py +213 -0
- strata_kb-1.0.1/src/strata_kb/ingest/__init__.py +0 -0
- strata_kb-1.0.1/src/strata_kb/ingest/images.py +163 -0
- strata_kb-1.0.1/src/strata_kb/ingest/parser.py +499 -0
- strata_kb-1.0.1/src/strata_kb/ingest/scaffold.py +398 -0
- strata_kb-1.0.1/src/strata_kb/ingest/sectioner.py +854 -0
- strata_kb-1.0.1/src/strata_kb/ingest/tableimages.py +147 -0
- strata_kb-1.0.1/src/strata_kb/ingestcmd.py +218 -0
- strata_kb-1.0.1/src/strata_kb/initcmd.py +521 -0
- strata_kb-1.0.1/src/strata_kb/intake.py +1848 -0
- strata_kb-1.0.1/src/strata_kb/kbcontext.py +388 -0
- strata_kb-1.0.1/src/strata_kb/lintcore.py +867 -0
- strata_kb-1.0.1/src/strata_kb/llm.py +101 -0
- strata_kb-1.0.1/src/strata_kb/mcp.py +372 -0
- strata_kb-1.0.1/src/strata_kb/mcpsetup.py +268 -0
- strata_kb-1.0.1/src/strata_kb/mdutils.py +218 -0
- strata_kb-1.0.1/src/strata_kb/mission.py +88 -0
- strata_kb-1.0.1/src/strata_kb/missionlint.py +420 -0
- strata_kb-1.0.1/src/strata_kb/models.py +246 -0
- strata_kb-1.0.1/src/strata_kb/prlint.py +441 -0
- strata_kb-1.0.1/src/strata_kb/pubgate.py +317 -0
- strata_kb-1.0.1/src/strata_kb/publish.py +1564 -0
- strata_kb-1.0.1/src/strata_kb/quality.py +206 -0
- strata_kb-1.0.1/src/strata_kb/query.py +548 -0
- strata_kb-1.0.1/src/strata_kb/resolve.py +320 -0
- strata_kb-1.0.1/src/strata_kb/review.py +235 -0
- strata_kb-1.0.1/src/strata_kb/searchdb.py +885 -0
- strata_kb-1.0.1/src/strata_kb/summarize.py +665 -0
- strata_kb-1.0.1/src/strata_kb/svcnote.py +484 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/QUICKSTART-ba.md +397 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/QUICKSTART-child.md +103 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/QUICKSTART-dev.md +473 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/QUICKSTART-hub.md +106 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/ac-quality-local-stub.md +17 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/ac-quality.md +26 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-command-ba-mission-plan.md +186 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-command-ba-ticket-author.md +51 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-command-dev-code-seed.md +97 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-command-dev-design.md +168 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-command-dev-execute.md +170 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-command-dev-handover.md +179 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-command-dev-implement-ticket.md +114 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-command-dev-plan.md +172 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-command-kb-approve.md +6 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-command-kb-docker-setup.md +6 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-command-kb-init.md +6 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-command-kb-mcp-setup.md +6 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-command-kb-summarize.md +8 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-command-sa-ticket-ground.md +20 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-settings-usage.json +16 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-skill-ba-mission-plan.md +192 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-skill-ba-ticket-author.md +175 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-skill-dev-code-seed.md +103 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-skill-dev-design.md +181 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-skill-dev-execute.md +198 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-skill-dev-handover.md +198 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-skill-dev-implement-ticket.md +132 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-skill-dev-plan.md +179 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-skill-kb-approve.md +37 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-skill-kb-docker-setup.md +35 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-skill-kb-ingest.md +52 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-skill-kb-init.md +44 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-skill-kb-mcp-setup.md +45 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-skill-kb-publish.md +35 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-skill-kb-summarize.md +90 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/claude-skill-sa-ticket-ground.md +99 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/config-ba.yaml +14 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/config-child.yaml +12 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/config-dev.yaml +18 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/config-hub.yaml +9 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/conventions-dart.md +89 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/conventions-dotnet.md +102 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/conventions-e2e-playwright.md +98 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/conventions-go.md +106 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/conventions-java.md +147 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/conventions-local-stub.md +8 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/conventions-php.md +107 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/conventions-pointer.instructions.md +8 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/conventions-pointer.mdc +10 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/conventions-python.md +108 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/conventions-rust.md +90 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/conventions-swift.md +95 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/conventions-ts.md +114 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/copilot-ba-mission-plan.prompt.md +189 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/copilot-ba-ticket-author.prompt.md +166 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/copilot-dev-code-seed.prompt.md +103 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/copilot-dev-design.prompt.md +181 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/copilot-dev-execute.prompt.md +198 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/copilot-dev-handover.prompt.md +198 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/copilot-dev-implement-ticket.prompt.md +134 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/copilot-dev-plan.prompt.md +179 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/copilot-kb-approve.prompt.md +31 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/copilot-kb-docker-setup.prompt.md +30 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/copilot-kb-ingest.prompt.md +49 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/copilot-kb-init.prompt.md +35 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/copilot-kb-mcp-setup.prompt.md +32 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/copilot-kb-publish.prompt.md +33 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/copilot-kb-summarize.instructions.md +61 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/copilot-sa-ticket-ground.prompt.md +99 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/cursor-ba-mission-plan.md +189 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/cursor-ba-ticket-author.md +166 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/cursor-dev-code-seed.md +103 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/cursor-dev-design.md +181 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/cursor-dev-execute.md +198 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/cursor-dev-handover.md +198 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/cursor-dev-implement-ticket.md +134 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/cursor-dev-plan.md +179 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/cursor-kb-approve.md +31 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/cursor-kb-docker-setup.md +30 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/cursor-kb-ingest.md +49 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/cursor-kb-init.md +35 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/cursor-kb-mcp-setup.md +32 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/cursor-kb-publish.md +33 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/cursor-kb-summarize.md +36 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/cursor-kb-summarize.mdc +43 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/cursor-mcp-child.json +8 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/cursor-sa-ticket-ground.md +99 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/docker-compose-child.yml +19 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/docker-compose-hub.yml +32 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/env.example +1 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/federation-README.md +26 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/gitattributes-child.txt +10 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/gitattributes.txt +11 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/gitkeep.txt +0 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/hub-gitignore.txt +3 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/impl-gitignore.txt +7 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/index.yaml +7 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/kb-code.yml +57 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/kb-pr-lint.yml +56 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/kb-publish.yml +22 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/kb-ticket-lint.yml +159 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/mcp-child.json +9 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/mcp-hub.json +8 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/mission-template.md +115 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/pr-review-rubric-local-stub.md +25 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/pr-review-rubric.md +122 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/pull-request-template.md +79 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/review-rubric-local-stub.md +21 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/review-rubric.md +70 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/source-gitignore.txt +2 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/tdd-exemptions.md +47 -0
- strata_kb-1.0.1/src/strata_kb/templates/init/ticket-template.md +121 -0
- strata_kb-1.0.1/src/strata_kb/templates/usage/report.html.j2 +98 -0
- strata_kb-1.0.1/src/strata_kb/templates/usage/usage-prices.yaml +35 -0
- strata_kb-1.0.1/src/strata_kb/templates/web/_partials/cards.html +16 -0
- strata_kb-1.0.1/src/strata_kb/templates/web/_partials/left_rail.html +57 -0
- strata_kb-1.0.1/src/strata_kb/templates/web/_partials/status.html +1 -0
- strata_kb-1.0.1/src/strata_kb/templates/web/base.html +43 -0
- strata_kb-1.0.1/src/strata_kb/templates/web/doc.html +85 -0
- strata_kb-1.0.1/src/strata_kb/templates/web/docs.html +35 -0
- strata_kb-1.0.1/src/strata_kb/templates/web/error.html +10 -0
- strata_kb-1.0.1/src/strata_kb/templates/web/login.html +26 -0
- strata_kb-1.0.1/src/strata_kb/templates/web/overview.html +62 -0
- strata_kb-1.0.1/src/strata_kb/templates/web/search.html +98 -0
- strata_kb-1.0.1/src/strata_kb/templates/web/section.html +61 -0
- strata_kb-1.0.1/src/strata_kb/templates/web/static/app.js +257 -0
- strata_kb-1.0.1/src/strata_kb/templates/web/static/fonts/IBMPlexMono-Regular.woff2 +0 -0
- strata_kb-1.0.1/src/strata_kb/templates/web/static/fonts/IBMPlexMono-SemiBold.woff2 +0 -0
- strata_kb-1.0.1/src/strata_kb/templates/web/static/fonts/IBMPlexSans-Bold.woff2 +0 -0
- strata_kb-1.0.1/src/strata_kb/templates/web/static/fonts/IBMPlexSans-Medium.woff2 +0 -0
- strata_kb-1.0.1/src/strata_kb/templates/web/static/fonts/IBMPlexSans-Regular.woff2 +0 -0
- strata_kb-1.0.1/src/strata_kb/templates/web/static/fonts/IBMPlexSans-SemiBold.woff2 +0 -0
- strata_kb-1.0.1/src/strata_kb/templates/web/static/style.css +310 -0
- strata_kb-1.0.1/src/strata_kb/ticket.py +69 -0
- strata_kb-1.0.1/src/strata_kb/ticketcheck.py +495 -0
- strata_kb-1.0.1/src/strata_kb/ticketlint.py +433 -0
- strata_kb-1.0.1/src/strata_kb/usage/__init__.py +0 -0
- strata_kb-1.0.1/src/strata_kb/usage/ledger.py +198 -0
- strata_kb-1.0.1/src/strata_kb/usage/prices.py +148 -0
- strata_kb-1.0.1/src/strata_kb/usage/report.py +208 -0
- strata_kb-1.0.1/src/strata_kb/usage/transcript.py +280 -0
- strata_kb-1.0.1/src/strata_kb/utf8io.py +19 -0
- strata_kb-1.0.1/src/strata_kb/web/__init__.py +0 -0
- strata_kb-1.0.1/src/strata_kb/web/api.py +268 -0
- strata_kb-1.0.1/src/strata_kb/web/app.py +132 -0
- strata_kb-1.0.1/src/strata_kb/web/auth.py +292 -0
- strata_kb-1.0.1/src/strata_kb/web/headers.py +69 -0
- strata_kb-1.0.1/src/strata_kb/web/intake_routes.py +403 -0
- strata_kb-1.0.1/src/strata_kb/web/mdrender.py +111 -0
- strata_kb-1.0.1/src/strata_kb/web/ratelimit.py +147 -0
- strata_kb-1.0.1/src/strata_kb/web/templating.py +17 -0
- strata_kb-1.0.1/src/strata_kb/web/ui.py +646 -0
- strata_kb-1.0.1/src/strata_kb/web/uidata.py +249 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# The machine's ~/.gitignore_global ignores *.md — this repo is docs-as-code,
|
|
2
|
+
# markdown is the main deliverable, so it must be un-ignored here
|
|
3
|
+
!*.md
|
|
4
|
+
|
|
5
|
+
# Copyrighted source documents (ARINC, ICAO) — ABSOLUTELY never commit
|
|
6
|
+
sources/
|
|
7
|
+
|
|
8
|
+
# Intermediate pipeline artifacts (Docling JSON, summarize jobs)
|
|
9
|
+
.kb-work/
|
|
10
|
+
|
|
11
|
+
# Python
|
|
12
|
+
__pycache__/
|
|
13
|
+
*.pyc
|
|
14
|
+
.venv/
|
|
15
|
+
.venv
|
|
16
|
+
venv/
|
|
17
|
+
.venv-artifact/
|
|
18
|
+
.venv-runner/
|
|
19
|
+
*.egg-info/
|
|
20
|
+
dist/
|
|
21
|
+
build/
|
|
22
|
+
|
|
23
|
+
# macOS
|
|
24
|
+
.DS_Store
|
|
25
|
+
|
|
26
|
+
# SDD scratch
|
|
27
|
+
.superpowers/
|
|
28
|
+
|
|
29
|
+
# Git worktrees (SDD isolation)
|
|
30
|
+
.worktrees/
|
|
31
|
+
|
|
32
|
+
# Harness-managed agent worktrees (parallel SDD tasks)
|
|
33
|
+
.claude/worktrees/
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to Strata are recorded here. This project follows
|
|
4
|
+
[Semantic Versioning](https://semver.org/).
|
|
5
|
+
|
|
6
|
+
## Unreleased
|
|
7
|
+
|
|
8
|
+
### BA repos — the SA grounding layer
|
|
9
|
+
|
|
10
|
+
- **`/sa-ticket-ground`** (new skill on `ba` repos; Claude Code, Copilot and
|
|
11
|
+
Cursor wrappers) fills the SA-owned `## Technical grounding` section of a
|
|
12
|
+
ticket — or, with `--mission`, `## Services & order` of a mission plan — from
|
|
13
|
+
the hub's `<repo>-code` document. Ids only: every line names a section id
|
|
14
|
+
that exists in the document, or carries `[NEW: <reason>]`, or is parked
|
|
15
|
+
under `Open decisions`. It has no repository access and never infers.
|
|
16
|
+
- `docs/tickets/TEMPLATE.md` gains `## Technical grounding` (a recommended
|
|
17
|
+
section — `kb ticket lint` warns when it is missing; legacy tickets keep
|
|
18
|
+
passing); `docs/missions/TEMPLATE.md` gains `## Services & order`. Neither
|
|
19
|
+
has a `Flow` or `Failure modes` field: the code document cannot prove them.
|
|
20
|
+
- `ba-ticket-author` and `ba-mission-plan` no longer read `<repo>-code` /
|
|
21
|
+
`<repo>-svc`; they write `%%TODO: verify against codebase%%` and hand off to
|
|
22
|
+
the SA skill.
|
|
23
|
+
- **`kb ticket check <file>`** — the machine gate for `## Technical grounding`:
|
|
24
|
+
every `svc.* / db.* / api.* / int.* / cmd.*` id must exist in the
|
|
25
|
+
`<repo>-code` document (read from `--kb-dir` when present, otherwise from
|
|
26
|
+
the hub federation), `Grounded on: <repo-id>:<doc-id> @ <revision>` must
|
|
27
|
+
match the document's manifest revision, columns / routes / commands must
|
|
28
|
+
match its own tables, `Files:` must appear in `struct.tree` (paths beyond
|
|
29
|
+
the depth or line cap degrade to a warning), and `Open decisions` must be
|
|
30
|
+
empty. Exit `0` PASS, `1` FAIL; `--json` for CI. Every error that points at
|
|
31
|
+
a ticket line names it. No MCP tool yet.
|
|
32
|
+
|
|
33
|
+
Re-run `kb init --kind ba` to pick up the new templates and wrappers.
|
|
34
|
+
|
|
35
|
+
## 1.0.1 — 2026-09-19
|
|
36
|
+
|
|
37
|
+
First release of **Strata** (`strata-kb`) — Knowledge Base as Code for large
|
|
38
|
+
reference documents, in any domain.
|
|
39
|
+
|
|
40
|
+
### The model
|
|
41
|
+
|
|
42
|
+
- **Four layers per store.** L0 `index.yaml` (master catalogue) → L1
|
|
43
|
+
`_manifest.yaml` (per-document contents with ≤ 25-word section summaries) →
|
|
44
|
+
L2 `.md` (condensed prose, tables verbatim, in the source's own language) →
|
|
45
|
+
L3 `.raw.md` (full extracted original). A lookup walks down only as far as it
|
|
46
|
+
needs to, which is where the token saving comes from.
|
|
47
|
+
- **Tables never pass through a model.** They are machine-extracted at both L2
|
|
48
|
+
and L3, and `kb build` diffs every L2 table against its L3 original after
|
|
49
|
+
normalising whitespace and alignment only. A table altered, dropped,
|
|
50
|
+
duplicated, reordered or invented fails the build in either direction.
|
|
51
|
+
- **Everything is files in Git.** No database, no runtime state. The review
|
|
52
|
+
surface is an ordinary pull request.
|
|
53
|
+
|
|
54
|
+
### Repo kinds
|
|
55
|
+
|
|
56
|
+
`kb init --kind hub|child|ba|dev` scaffolds a repo and records the choice in
|
|
57
|
+
`.kb/config.yaml`. A `hub` hosts `federation/` and the shared service; a `child`
|
|
58
|
+
authors documents and publishes them; a `ba` drafts tickets and mission plans
|
|
59
|
+
grounded in the KB; a `dev` implements those tickets and publishes knowledge
|
|
60
|
+
about its own source code. Re-running `kb init` refreshes scaffolding and
|
|
61
|
+
preserves data unless `--force`.
|
|
62
|
+
|
|
63
|
+
Slash commands are scaffolded for Claude Code, GitHub Copilot and Cursor, and
|
|
64
|
+
MCP client wiring ships as `.mcp.json` and `.cursor/mcp.json` on every kind —
|
|
65
|
+
but with `${STRATA_KB_HUB_URL}` and `${STRATA_KB_HTTP_TOKEN}` placeholders
|
|
66
|
+
that nothing sets on their own. **`kb mcp-setup`** connects a `child`, `ba` or
|
|
67
|
+
`dev` repo to the hub's HTTP MCP service: it writes both values into `.env`,
|
|
68
|
+
makes sure git ignores it, and verifies them against `GET /api/health` (no
|
|
69
|
+
token) and `GET /api/docs` (token), so a wrong URL and a rejected token give
|
|
70
|
+
different errors. Values resolve flag → environment → the value already in
|
|
71
|
+
`.env` → hidden prompt, so a bare re-run verifies again without retyping.
|
|
72
|
+
`/kb-mcp-setup` wrappers ship for Claude Code, Copilot and Cursor; they never
|
|
73
|
+
take the token in chat. `kb docker-setup` run against a `ba` or `dev` repo
|
|
74
|
+
names the actual kind and points at `kb mcp-setup` instead.
|
|
75
|
+
|
|
76
|
+
### Authoring
|
|
77
|
+
|
|
78
|
+
- `kb ingest` splits a PDF by its own outline (or by heading pattern with
|
|
79
|
+
`--no-bookmarks`), writes L3, scaffolds L1/L2, and extracts every embedded
|
|
80
|
+
image once as a content-addressed asset. Descriptions come from the source —
|
|
81
|
+
the image's own caption, falling back to OCR — never generated. Re-ingest is a
|
|
82
|
+
full replace by default and a surgical per-chapter rewrite with `--sections`.
|
|
83
|
+
The report names every sectioning decision, so nothing is silent.
|
|
84
|
+
- `kb summarize` fills L1/L2 blanks through a headless LLM CLI (`claude` →
|
|
85
|
+
`copilot`, auto-detected), and runs automatically inside `kb ingest`.
|
|
86
|
+
`/kb-summarize` is the manual fallback when no CLI is installed. Supports
|
|
87
|
+
`--redo`, `--print-prompt`, and verbatim copy for sections under 200
|
|
88
|
+
characters.
|
|
89
|
+
- `kb build` gates the store: no leftover blanks, full table integrity, and
|
|
90
|
+
quality rules (`--strict` turns warnings into errors). It also fails when L3
|
|
91
|
+
changed after summarization or L2 changed after approval, and never writes a
|
|
92
|
+
manifest while reporting an error. `--allow-pending` validates work in
|
|
93
|
+
progress.
|
|
94
|
+
- `kb approve` records `reviewed: {by, at, l2_sha256}` per section behind a
|
|
95
|
+
clean tree and a passing strict build.
|
|
96
|
+
- `kb status`, `kb stats`, `kb doctor` report what is left, what it costs, and
|
|
97
|
+
what is broken.
|
|
98
|
+
|
|
99
|
+
### Search
|
|
100
|
+
|
|
101
|
+
- `kb query` runs hybrid search — SQLite FTS5 keyword plus optional semantic
|
|
102
|
+
KNN, fused with RRF — over the hub's `federation/`, returning L2 sections
|
|
103
|
+
within a token budget with `<repo-id>:<doc-id> §<section> (<revision>)`
|
|
104
|
+
citations. No model call happens during a lookup.
|
|
105
|
+
- `kb get` fetches one section at a chosen level; `kb tags` lists the published
|
|
106
|
+
tag vocabulary.
|
|
107
|
+
- Sections are never cut mid-way, which is what keeps returned tables verbatim;
|
|
108
|
+
`--budget` is therefore advisory and the first result always comes back whole.
|
|
109
|
+
|
|
110
|
+
### Hub and federation
|
|
111
|
+
|
|
112
|
+
- `kb publish` mirrors a store's full `.kb/` (L0→L3) into
|
|
113
|
+
`federation/<repo-id>/` on the hub and rebuilds the aggregate index. It copies
|
|
114
|
+
`.kb/` **artefacts only** and names anything withheld — config files and
|
|
115
|
+
dotfiles never reach the hub.
|
|
116
|
+
- `kb ci-publish` publishes from a child's own GitHub Actions job using OIDC, no
|
|
117
|
+
secrets. Uploaded paths are capped at 110 UTF-16 code units so
|
|
118
|
+
`federation/<repo-id>/<path>` stays inside a Windows client's `MAX_PATH`. Its
|
|
119
|
+
urllib wrapper lives in `strata_kb.httpio` with a `timeout` parameter, so the
|
|
120
|
+
`file://` scheme guard is shared across its callers rather than duplicated
|
|
121
|
+
per caller (the dev-machine intake flow in `publish.py` keeps its own copy
|
|
122
|
+
by design).
|
|
123
|
+
- **Multi-tier federation:** a hub may publish its own `federation/` upward into
|
|
124
|
+
another hub, unbounded in depth, with cycle detection. Scope a search by
|
|
125
|
+
choosing which hub you query.
|
|
126
|
+
- **Optional S3 asset offloading** (`asset_store: {mode: s3, bucket: …}`) keeps
|
|
127
|
+
large images out of git and serves them from the bucket with a local cache.
|
|
128
|
+
- `kb reindex` repairs a drifted `federation/index.yaml`;
|
|
129
|
+
`federation/index.yaml` records `content_sha256` per snapshot so `kb doctor`
|
|
130
|
+
detects content modified in place on the hub.
|
|
131
|
+
- All git operations (clone, fetch, pull, push) pass credentials through the
|
|
132
|
+
credential helper — tokens never appear in `remote.origin.url` or in any log
|
|
133
|
+
line. This is what sets the git ≥ 2.31 floor for a credentialed `hub:` URL.
|
|
134
|
+
|
|
135
|
+
### MCP server and Web UI
|
|
136
|
+
|
|
137
|
+
- One process serves both: stdio for a local agent, or HTTP with a bearer token
|
|
138
|
+
for a shared deployment — `/mcp` for agents, `/api/…` for REST, `/ui` for
|
|
139
|
+
people.
|
|
140
|
+
- Five MCP tools: `kb_search`, `kb_get_section`, `kb_context_new`, `kb_resolve`,
|
|
141
|
+
`kb_ticket_lint`. `kb_search` caps each ranking leg at 50 results before
|
|
142
|
+
fusion and says so when matches were dropped; it flags cross-repo duplicates,
|
|
143
|
+
exact score ties, and hybrid-confirmed near-ties.
|
|
144
|
+
- A hub is mandatory — the server refuses to start without one, and never
|
|
145
|
+
queries its own working `.kb/`.
|
|
146
|
+
- Security headers on every response (CSP `script-src 'self'`,
|
|
147
|
+
`X-Frame-Options: DENY`, nosniff, `Referrer-Policy`, `Permissions-Policy`;
|
|
148
|
+
HSTS on https). The `/ui` session cookie is a signed, expiring value derived
|
|
149
|
+
from the token, never the token itself; `POST /ui/logout` ends a session.
|
|
150
|
+
Failed `Authorization` attempts share the login form's rate-limit bucket, so
|
|
151
|
+
the lockout cannot be side-stepped through the header. A corrupt published
|
|
152
|
+
snapshot renders a 503 error page, not a bare 500.
|
|
153
|
+
|
|
154
|
+
### Citations that pin a version
|
|
155
|
+
|
|
156
|
+
`kb context new` writes a `kb-context` block pinned at the hub's current commit;
|
|
157
|
+
`kb resolve` answers `ok`/`stale`/`broken` by walking the hub's history at that
|
|
158
|
+
commit; `kb diff` reports what an amendment changed between two revisions —
|
|
159
|
+
titles, L1 summaries, the L2 slice, the L3 original, added and removed sections,
|
|
160
|
+
and manifest reorders. `kb doctor --context` runs the same check in CI.
|
|
161
|
+
|
|
162
|
+
### BA repos
|
|
163
|
+
|
|
164
|
+
`ba-ticket-author` and `ba-mission-plan` run grounded, human-gated pipelines that
|
|
165
|
+
produce Markdown only — the agent never pushes to a tracker. Two
|
|
166
|
+
Definition-of-Ready gates, `kb ticket lint` and `kb mission lint`, check required
|
|
167
|
+
structure, diagrams, backlog well-formedness, and that every citation resolves at
|
|
168
|
+
its pinned commit. Mission lint is CLI-only by design: its checks need
|
|
169
|
+
filesystem access to the sibling `tickets/` directory that a shared MCP server
|
|
170
|
+
does not have.
|
|
171
|
+
|
|
172
|
+
### Dev repos
|
|
173
|
+
|
|
174
|
+
- A five-command agent workflow (`/dev-implement-ticket` plus design, plan,
|
|
175
|
+
execute, handover) with four human gates, resumable across sessions from
|
|
176
|
+
artifacts alone — no sidecar state file. No production code without a failing
|
|
177
|
+
test observed first; no completion claim without shown verification output.
|
|
178
|
+
- Five independent review subagents in front of those gates — A1 (design), A2
|
|
179
|
+
(plan), A3 (per task), A4 (branch), A5 (merge-risk) — so the agent that
|
|
180
|
+
writes an artifact never judges it. A shared `## Review dispatch contract`
|
|
181
|
+
in every phase wrapper keeps author and reviewer in separate contexts; only
|
|
182
|
+
A5 is machine-checked.
|
|
183
|
+
- `docs/pr-review-rubric.md` and its create-once
|
|
184
|
+
`docs/pr-review-rubric.local.md` override, scaffolded by `kb init --kind
|
|
185
|
+
dev`, hold the pre-code and merge-risk axes and the BLOCKER/SUGGESTED/
|
|
186
|
+
NOTE/NITS severity ladder every review uses.
|
|
187
|
+
- `kb code-ingest` extracts a codebase's structure into `.kb/<repo_id>-code/`,
|
|
188
|
+
deterministically and with no LLM, through seven extractors organised by
|
|
189
|
+
artifact kind rather than language: services, deps, commands, tree, schema,
|
|
190
|
+
integrations, api. Dependency detection covers Python, JavaScript, Java,
|
|
191
|
+
.NET, Go, PHP, Rust, Swift and Dart ecosystems, and framework detection
|
|
192
|
+
includes Playwright e2e suites. It refuses a destination it did not write, and
|
|
193
|
+
exits 1 when no extractor other than `tree` found anything.
|
|
194
|
+
- **Two security properties, not conveniences:** the `integrations` extractor
|
|
195
|
+
emits keys and never values (the only env file it opens is
|
|
196
|
+
`.env.example`/`.sample`/`.template`, and its regex has no capture group
|
|
197
|
+
around the value at all), and SQLite schema input is `--db`-only and never
|
|
198
|
+
inferred, so a stray scratch database cannot become published company
|
|
199
|
+
knowledge.
|
|
200
|
+
- `kb svc note` appends an idempotent row to `<repo_id>-svc §hist.<service>`;
|
|
201
|
+
`/dev-code-seed` bootstraps the curated `-svc` document once per repo.
|
|
202
|
+
`-code` and `-svc` are deliberately separate documents — overwrite versus
|
|
203
|
+
accumulate, `pending` versus clean build, auto-merge versus review — joined by
|
|
204
|
+
the `svc.<name>` section id so a C4 `Container(...)` can be filled from both.
|
|
205
|
+
|
|
206
|
+
### Measurement, linting, and operations
|
|
207
|
+
|
|
208
|
+
- `kb usage` ingests agent transcripts, records rows and renders a token/cost
|
|
209
|
+
report.
|
|
210
|
+
- `kb pr lint` checks that a pull-request description carries its evidence,
|
|
211
|
+
across nine required sections including `## Review`, which fails the PR on
|
|
212
|
+
a missing verdict line or on `Blocking: Yes`.
|
|
213
|
+
- `kb assets migrate` / `verify` operate a hub's asset store.
|
|
214
|
+
- `kb docker-setup` prepares a hub (`.env`, token, `docker compose up -d`) or a
|
|
215
|
+
child (pull the ingest image). Release tags publish to PyPI and push
|
|
216
|
+
`ghcr.io/vuonglq01685/strata-kb`.
|
|
217
|
+
|
|
218
|
+
### Platform support
|
|
219
|
+
|
|
220
|
+
Python 3.11, 3.12 and 3.13 on Linux and Windows, gated on every release. `kb`
|
|
221
|
+
forces UTF-8 on stdin/stdout/stderr at startup on every OS. Git ≥ 2.31 is
|
|
222
|
+
required on any machine whose `hub:` URL carries a credential.
|
|
223
|
+
|
|
224
|
+
### Known limitations
|
|
225
|
+
|
|
226
|
+
- **HTTP authentication stops at a bearer token** — one fixed secret, no OAuth
|
|
227
|
+
or SSO. Adequate for an internal network; not ready for the public internet.
|
|
228
|
+
- **A governed hub that `gh` cannot open a pull request on has no publish
|
|
229
|
+
route.** Against a hub carrying a non-empty `federation/registry.yaml` whose
|
|
230
|
+
remote `gh repo view` cannot answer for, `kb publish`, `--pr` and `--direct`
|
|
231
|
+
all exit 1. `kb ci-publish` is not a fourth route: it runs only inside a
|
|
232
|
+
child's own GitHub Actions job, the intake accepts only GitHub Actions OIDC
|
|
233
|
+
tokens, and it lands content through `api.github.com` — GitHub at both ends.
|
|
234
|
+
What is available, in order:
|
|
235
|
+
- *Hub on GitHub or GitHub Enterprise, `gh` merely not set up here:* install
|
|
236
|
+
and authenticate `gh` for that host (`GH_HOST=<host>` for Enterprise) until
|
|
237
|
+
`gh repo view` succeeds inside the hub clone, then publish with `--pr`. This
|
|
238
|
+
is the ordinary fix and the common case.
|
|
239
|
+
- *Hub on github.com, publisher is a child repo's CI:* wire the child to the
|
|
240
|
+
intake service and publish from its Actions job with `kb ci-publish`. This
|
|
241
|
+
does not exist for an **intermediate hub** publishing upward — hub-to-hub
|
|
242
|
+
publish gets the same refusals, and `kb ci-publish` tars `.kb/`, not
|
|
243
|
+
`federation/`. For an intermediate hub the only route is `--pr` with a
|
|
244
|
+
working `gh`, on any host.
|
|
245
|
+
- *Hub not on GitHub at all (GitLab, Gitea, self-hosted):* no route in this
|
|
246
|
+
release. The only lever is the hub owner removing
|
|
247
|
+
`federation/registry.yaml`, which restores `--direct` for every publisher
|
|
248
|
+
and gives up the governance the registry was added for.
|
|
249
|
+
- **The registry is a mistake guard, not a security boundary.** A child's remote
|
|
250
|
+
URL is self-asserted, so the check cannot authenticate anyone, and the
|
|
251
|
+
remote-less exemption is a convenience for a purely local hub. Branch
|
|
252
|
+
protection on the hub, plus the OIDC intake, are the controls that actually
|
|
253
|
+
hold.
|
|
254
|
+
- **Summarization is triggered, not scheduled.** It runs inside `kb ingest` or
|
|
255
|
+
on demand; there is no unattended background pass.
|
|
256
|
+
- **`status: reviewed` is never set automatically.** `kb approve` is a
|
|
257
|
+
deliberate human action. The operative gate is the pull request `kb publish`
|
|
258
|
+
opens on the hub.
|
|
259
|
+
- **PDF extraction is not perfect.** A small share of sections in a complex
|
|
260
|
+
document can come through malformed and need a human cross-check against the
|
|
261
|
+
source.
|
strata_kb-1.0.1/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
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.
|