k0ntrol-cli 0.1.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.
- k0ntrol_cli-0.1.0/.gitignore +25 -0
- k0ntrol_cli-0.1.0/AGENTS.md +96 -0
- k0ntrol_cli-0.1.0/CHANGELOG.md +68 -0
- k0ntrol_cli-0.1.0/GLOSSARY.md +143 -0
- k0ntrol_cli-0.1.0/LICENSE +201 -0
- k0ntrol_cli-0.1.0/PKG-INFO +154 -0
- k0ntrol_cli-0.1.0/README.md +104 -0
- k0ntrol_cli-0.1.0/docs/adr/0001-validator-is-a-code-gate-and-agents-get-run-tests-not-a-shell.md +16 -0
- k0ntrol_cli-0.1.0/docs/adr/0002-agents-run-as-a-langgraph-workflow-graph.md +14 -0
- k0ntrol_cli-0.1.0/docs/adr/0003-the-tracker-work-item-carries-the-work.md +19 -0
- k0ntrol_cli-0.1.0/docs/adr/0004-providers-replace-the-cursor-backend.md +8 -0
- k0ntrol_cli-0.1.0/docs/adr/0005-version-0-1-0-and-a-closed-list-of-runtime-dependencies.md +3 -0
- k0ntrol_cli-0.1.0/docs/adr/0006-tool-safety-is-process-hygiene-and-code-guards-not-a-sandbox.md +27 -0
- k0ntrol_cli-0.1.0/docs/adr/0007-the-workflow-graph-runs-synchronously.md +12 -0
- k0ntrol_cli-0.1.0/docs/adr/0008-the-0-1-0-runtime-dependencies-and-provider-extras.md +14 -0
- k0ntrol_cli-0.1.0/docs/adr/0009-the-suite-runs-in-parallel-and-the-tdd-loop-runs-only-the-tests-in-play.md +23 -0
- k0ntrol_cli-0.1.0/docs/adr/0010-plain-opentelemetry-export-is-an-optional-otel-extra.md +21 -0
- k0ntrol_cli-0.1.0/docs/adr/0011-one-implementer-builds-red-to-green-slices-under-a-code-guard.md +18 -0
- k0ntrol_cli-0.1.0/docs/adr/0012-work-is-planned-on-the-tracker-as-a-spec-and-its-tickets.md +19 -0
- k0ntrol_cli-0.1.0/docs/adr/0013-planner-and-researcher-get-read-only-network-tools.md +19 -0
- k0ntrol_cli-0.1.0/docs/adr/0014-the-done-gate-is-the-ci-gate.md +14 -0
- k0ntrol_cli-0.1.0/docs/adr/0015-a-red-slice-escalates-to-a-human-recovery-gate.md +20 -0
- k0ntrol_cli-0.1.0/docs/adr/0016-repo-configured-app-logins-join-the-trusted-authors.md +20 -0
- k0ntrol_cli-0.1.0/docs/adr/0017-planner-and-researcher-can-use-the-providers-own-web-search.md +34 -0
- k0ntrol_cli-0.1.0/docs/agents/child-sessions.md +27 -0
- k0ntrol_cli-0.1.0/docs/agents/domain.md +39 -0
- k0ntrol_cli-0.1.0/docs/agents/issue-tracker.md +95 -0
- k0ntrol_cli-0.1.0/docs/agents/triage-labels.md +17 -0
- k0ntrol_cli-0.1.0/docs/releases/0.0.2-unstable.md +96 -0
- k0ntrol_cli-0.1.0/docs/releases/0.0.3-unstable.md +56 -0
- k0ntrol_cli-0.1.0/docs/releases/0.1.0.md +88 -0
- k0ntrol_cli-0.1.0/docs/research/104-old-config-keys-scope.md +74 -0
- k0ntrol_cli-0.1.0/docs/research/langgraph.md +158 -0
- k0ntrol_cli-0.1.0/docs/research/observability.md +172 -0
- k0ntrol_cli-0.1.0/docs/research/providers.md +147 -0
- k0ntrol_cli-0.1.0/docs/research/tracker-access.md +184 -0
- k0ntrol_cli-0.1.0/pyproject.toml +103 -0
- k0ntrol_cli-0.1.0/scripts/check +9 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/__init__.py +1 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/agents.py +998 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/cli.py +190 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/config.py +330 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/credentials.py +78 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/defaults/config.yaml +23 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/events.py +838 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/frontends/__init__.py +1 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/frontends/ask.py +218 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/frontends/badges.py +228 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/frontends/banner.py +128 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/frontends/diffview.py +174 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/frontends/editor.py +701 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/frontends/klog.html +740 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/frontends/klog.py +403 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/frontends/logo.py +12 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/frontends/mentions.py +29 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/frontends/prompt.py +340 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/frontends/render.py +485 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/frontends/session.py +717 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/frontends/setup.py +442 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/frontends/terminal.py +396 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/frontends/theme.py +24 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/helpers.py +108 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/init_flow.py +362 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/langfuse.py +173 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/memory/__init__.py +0 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/memory/index.py +235 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/memory/layout.py +66 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/memory/python_extract.py +189 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/memory/reflect.py +366 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/memory/refresh.py +21 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/memory/scan.py +538 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/memory/session.py +145 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/otel.py +429 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/pricing.py +29 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/prompts/chatty.md +17 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/prompts/implementer.md +14 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/prompts/planner.md +42 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/prompts/researcher.md +20 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/prompts/reviewer.md +34 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/providers.py +718 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/search.py +133 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/tools/__init__.py +0 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/tools/bulk_read.py +93 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/tools/errors.py +50 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/tools/fetch_url.py +212 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/tools/net.py +317 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/tools/path_guard.py +45 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/tools/read.py +174 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/tools/run_tests.py +66 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/tools/runner.py +177 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/tools/search_memory.py +32 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/tools/slice_guard.py +166 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/tools/slice_journal.py +481 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/tools/tracker.py +115 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/tools/web_search.py +199 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/tools/write.py +123 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/tracker/__init__.py +31 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/tracker/github.py +371 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/tracker/local_files.py +241 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/tracker/protocol.py +210 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/workflow/__init__.py +29 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/workflow/change.py +605 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/workflow/ci_gate.py +96 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/workflow/context.py +137 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/workflow/implement.py +1150 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/workflow/nodes.py +331 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/workflow/plan.py +675 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/workflow/qa.py +98 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/workflow/research.py +533 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/workflow/routers.py +273 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/workflow/run.py +1165 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/workflow/state.py +146 -0
- k0ntrol_cli-0.1.0/src/k0ntrol/workflow/triage.py +269 -0
- k0ntrol_cli-0.1.0/tests/conftest.py +21 -0
- k0ntrol_cli-0.1.0/tests/fakes.py +627 -0
- k0ntrol_cli-0.1.0/tests/stub_runner.py +94 -0
- k0ntrol_cli-0.1.0/tests/test_agents.py +1471 -0
- k0ntrol_cli-0.1.0/tests/test_ask.py +465 -0
- k0ntrol_cli-0.1.0/tests/test_badges.py +82 -0
- k0ntrol_cli-0.1.0/tests/test_banner.py +96 -0
- k0ntrol_cli-0.1.0/tests/test_bulk_read.py +157 -0
- k0ntrol_cli-0.1.0/tests/test_cli.py +71 -0
- k0ntrol_cli-0.1.0/tests/test_config.py +227 -0
- k0ntrol_cli-0.1.0/tests/test_config_schema.py +412 -0
- k0ntrol_cli-0.1.0/tests/test_credentials.py +105 -0
- k0ntrol_cli-0.1.0/tests/test_devin_agents.py +123 -0
- k0ntrol_cli-0.1.0/tests/test_diffview.py +145 -0
- k0ntrol_cli-0.1.0/tests/test_doctor.py +689 -0
- k0ntrol_cli-0.1.0/tests/test_editor.py +688 -0
- k0ntrol_cli-0.1.0/tests/test_events.py +1005 -0
- k0ntrol_cli-0.1.0/tests/test_helpers.py +184 -0
- k0ntrol_cli-0.1.0/tests/test_index.py +171 -0
- k0ntrol_cli-0.1.0/tests/test_init.py +584 -0
- k0ntrol_cli-0.1.0/tests/test_klog.py +399 -0
- k0ntrol_cli-0.1.0/tests/test_langfuse.py +669 -0
- k0ntrol_cli-0.1.0/tests/test_mentions.py +28 -0
- k0ntrol_cli-0.1.0/tests/test_otel.py +469 -0
- k0ntrol_cli-0.1.0/tests/test_path_guard.py +101 -0
- k0ntrol_cli-0.1.0/tests/test_private_run_files.py +704 -0
- k0ntrol_cli-0.1.0/tests/test_prompt.py +445 -0
- k0ntrol_cli-0.1.0/tests/test_providers.py +280 -0
- k0ntrol_cli-0.1.0/tests/test_reflect.py +794 -0
- k0ntrol_cli-0.1.0/tests/test_refresh.py +67 -0
- k0ntrol_cli-0.1.0/tests/test_render.py +589 -0
- k0ntrol_cli-0.1.0/tests/test_scan.py +511 -0
- k0ntrol_cli-0.1.0/tests/test_search_memory.py +117 -0
- k0ntrol_cli-0.1.0/tests/test_session.py +732 -0
- k0ntrol_cli-0.1.0/tests/test_session_memory.py +100 -0
- k0ntrol_cli-0.1.0/tests/test_setup.py +654 -0
- k0ntrol_cli-0.1.0/tests/test_skeleton.py +66 -0
- k0ntrol_cli-0.1.0/tests/test_stub_runner.py +114 -0
- k0ntrol_cli-0.1.0/tests/test_suite_env.py +20 -0
- k0ntrol_cli-0.1.0/tests/test_suite_isolation.py +11 -0
- k0ntrol_cli-0.1.0/tests/test_terminal.py +442 -0
- k0ntrol_cli-0.1.0/tests/test_tools_fetch_url.py +476 -0
- k0ntrol_cli-0.1.0/tests/test_tools_net.py +348 -0
- k0ntrol_cli-0.1.0/tests/test_tools_read.py +202 -0
- k0ntrol_cli-0.1.0/tests/test_tools_run_tests.py +316 -0
- k0ntrol_cli-0.1.0/tests/test_tools_slice_guard.py +567 -0
- k0ntrol_cli-0.1.0/tests/test_tools_slice_journal.py +437 -0
- k0ntrol_cli-0.1.0/tests/test_tools_web_search.py +337 -0
- k0ntrol_cli-0.1.0/tests/test_tools_write.py +117 -0
- k0ntrol_cli-0.1.0/tests/test_tracker.py +393 -0
- k0ntrol_cli-0.1.0/tests/test_tracker_github.py +845 -0
- k0ntrol_cli-0.1.0/tests/test_workflow_ci_gate.py +250 -0
- k0ntrol_cli-0.1.0/tests/test_workflow_implement.py +2258 -0
- k0ntrol_cli-0.1.0/tests/test_workflow_plan.py +1592 -0
- k0ntrol_cli-0.1.0/tests/test_workflow_recovery.py +424 -0
- k0ntrol_cli-0.1.0/tests/test_workflow_research.py +1125 -0
- k0ntrol_cli-0.1.0/tests/test_workflow_review_readiness.py +693 -0
- k0ntrol_cli-0.1.0/tests/test_workflow_triage.py +919 -0
- k0ntrol_cli-0.1.0/uv.lock +3254 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.egg-info/
|
|
5
|
+
build/
|
|
6
|
+
dist/
|
|
7
|
+
.venv/
|
|
8
|
+
.pytest_cache/
|
|
9
|
+
.ruff_cache/
|
|
10
|
+
.complexipy_cache/
|
|
11
|
+
.coverage
|
|
12
|
+
htmlcov/
|
|
13
|
+
|
|
14
|
+
# k0's own runtime state while dogfooding
|
|
15
|
+
# ponytail: whole .k0-mem/ ignored; 0.1.0 dogfood decides what memory to commit
|
|
16
|
+
/spec.md
|
|
17
|
+
/review.md
|
|
18
|
+
|
|
19
|
+
# Claude Code worktrees
|
|
20
|
+
.claude/worktrees/
|
|
21
|
+
|
|
22
|
+
# env / OS
|
|
23
|
+
.env
|
|
24
|
+
.env.*
|
|
25
|
+
.DS_Store
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# AGENTS.md — rules for any coding agent working on this repo
|
|
2
|
+
|
|
3
|
+
k0ntrol (`k0`) is a local harness for coding agents (Python). The 0.1.0 pivot to LangGraph is charted in the wayfinder map [rubjpDev/k0ntrol#2](https://github.com/rubjpDev/k0ntrol/issues/2). Domain language lives in `GLOSSARY.md`, decisions in `docs/adr/`, research notes in `docs/research/`. If code contradicts an ADR, either the code is wrong or a new ADR supersedes it: never silently diverge.
|
|
4
|
+
|
|
5
|
+
## How to work
|
|
6
|
+
|
|
7
|
+
- Work from a GitHub issue on `rubjpDev/k0ntrol`. Use one issue per branch and PR, and commit with `#<issue>: <what>`.
|
|
8
|
+
- TDD, always: write the failing test, run it and see it fail (RED), minimal code to pass (GREEN), then refactor. No production code without a failing test first.
|
|
9
|
+
- During red/green, run only the tests in play: the test file or node id you are changing (`uv run pytest -q tests/test_x.py::test_y`), or `uv run pytest -q --lf -x` to re-run what last failed. Run the full suite once, at the end, as the done gate below.
|
|
10
|
+
- A task is done only when `./scripts/check` — the full CI gate: typecheck, tests with coverage, complexity — passes and you have shown the output.
|
|
11
|
+
- Reviewing uncommitted work: `git add -N` new files first — untracked files are invisible to `git diff`, so a review can silently miss them.
|
|
12
|
+
- Stuck after 2 attempts on the same task: stop, write what failed and why, and hand back to the human. Do not improvise a workaround.
|
|
13
|
+
- Design fork the ticket does not settle: stop and ask before writing code. Do not resolve it alone.
|
|
14
|
+
|
|
15
|
+
## Git safety and human approval
|
|
16
|
+
|
|
17
|
+
- Work on your own feature branch, never directly on `main` or `develop`.
|
|
18
|
+
- When a task is verified, commit it on your branch, push the branch, and open a PR to `develop`. That PR is the approval request: the human reviews and merges it.
|
|
19
|
+
- The PR body lists every change to code outside the ticket's new files, including shared helpers.
|
|
20
|
+
- Never merge, force-push, reset, rebase, or rewrite history. Never push to `main` or `develop`.
|
|
21
|
+
- In an interactive local session, show the diff, test output and proposed commit message, and wait for approval before committing.
|
|
22
|
+
- Never discard work. Prefer non-destructive operations that preserve the working tree.
|
|
23
|
+
- Never `git stash`: the stash stack is shared across worktrees and may hold `.k0-mem` run state. To check old states, use `git worktree add <tmp> <base>` or `git show <base>:<file>`.
|
|
24
|
+
|
|
25
|
+
### Exception: `/implement-spec` (2026-10-08)
|
|
26
|
+
|
|
27
|
+
A `/implement-spec` run works from one spec issue and replaces "one issue per branch and PR" with these rules:
|
|
28
|
+
|
|
29
|
+
- Create one integration branch per spec, `spec/<spec-issue>-<slug>`, from `develop`. Open one draft PR from it to `develop` that closes the spec issue and every ticket in scope.
|
|
30
|
+
- Build only the tickets the spec issue lists as in scope. Do not start any other ticket, even if it becomes unblocked.
|
|
31
|
+
- Give each ticket its own worktree and branch, `ticket/<issue>-<slug>`, based on the integration branch. Run `uv sync` in the worktree before running tests. Commit with `#<ticket>: <what>`.
|
|
32
|
+
- An implementer may reset its fresh worktree onto the integration branch before it starts work, and may merge the integration branch tip into its own ticket branch. The merger subagent may merge ticket branches into the integration branch only.
|
|
33
|
+
- When parallel tickets touched shared files, the merger prompt states what each side changed and why, so conflict resolution keeps both intents.
|
|
34
|
+
- Everything else in this file still applies: never touch `main` or `develop`, never force-push or rebase, and the human merges the PR.
|
|
35
|
+
|
|
36
|
+
## Invariants (never break these)
|
|
37
|
+
|
|
38
|
+
From the charting decision [rubjpDev/k0ntrol#3](https://github.com/rubjpDev/k0ntrol/issues/3):
|
|
39
|
+
|
|
40
|
+
- Edges between agents are code, never a supervisor LLM. The agent decides how to do its node; the workflow graph decides which node runs.
|
|
41
|
+
- Each agent's tool allowlist and path guards are enforced in code.
|
|
42
|
+
- Gates are code or the human, never a prompt. The VALIDATOR gate is deterministic (`test_cmd` + `gates`).
|
|
43
|
+
- Each agent run starts with fresh context.
|
|
44
|
+
- k0 never merges.
|
|
45
|
+
- Every model invocation emits one JSONL event.
|
|
46
|
+
|
|
47
|
+
## Code rules
|
|
48
|
+
|
|
49
|
+
- Python ≥ 3.11, stdlib first. Runtime deps are a closed list: today `pyyaml` and `rich`; the 0.1.0 additions are recorded in an ADR. Ask before adding anything not on it.
|
|
50
|
+
- Cognitive complexity ≤ 6 per function and coverage ≥ 90 %, both enforced in CI. Small functions, explicit names, type hints on public functions.
|
|
51
|
+
- Everything is English: code, comments, commits, tests, docs, ADRs and issues.
|
|
52
|
+
|
|
53
|
+
## Commands
|
|
54
|
+
|
|
55
|
+
Run from the repo root:
|
|
56
|
+
|
|
57
|
+
- Setup: `uv sync`
|
|
58
|
+
- Check (the CI gate): `./scripts/check`
|
|
59
|
+
- Tests: `uv run pytest -q`
|
|
60
|
+
- Tests (while iterating): `uv run pytest -q <file or node id>`
|
|
61
|
+
- Complexity: `uv run complexipy src --max-complexity-allowed 6`
|
|
62
|
+
- Typecheck: `uv run mypy src`
|
|
63
|
+
- Coverage: `uv run pytest --cov=k0ntrol --cov-fail-under=90`
|
|
64
|
+
- CLI: `uv run k0 --help`
|
|
65
|
+
|
|
66
|
+
## Agent skills
|
|
67
|
+
|
|
68
|
+
Skills are vendored per repo in `.agents/skills/` (from `mattpocock/skills`, pinned in `skills-lock.json`); `.claude/skills` is a symlink to it. Update them from upstream in this repo; do not install them globally.
|
|
69
|
+
|
|
70
|
+
### Subagent routing
|
|
71
|
+
|
|
72
|
+
In Devin, use the profiles in `.devin/agents/`; in Claude Code, the same-named profiles in `.claude/agents/`. Clients without custom subagents run the step inline.
|
|
73
|
+
|
|
74
|
+
- `/code-review`: two sub-agents in one turn — Standards `standards-reviewer`, Spec `spec-reviewer`. The parent aggregates after both return.
|
|
75
|
+
- `/research` background agent, including wayfinder research tickets: `researcher`.
|
|
76
|
+
- `/implement-spec`: use `swe-worker` for implementer and exploration subagents, and `merger` for the merger subagent.
|
|
77
|
+
- `codebase-design` design-it-twice: use `design-variant` for Agent 3 ("optimise for the most common caller"). Use `swe-worker` for the other designers and include the read-only constraint in each brief.
|
|
78
|
+
- Other Matt Pocock skill subagents that previously inherited the parent model use `swe-worker`.
|
|
79
|
+
|
|
80
|
+
A custom Devin profile without `model` uses the subagent router, not the parent's model, so every profile in `.devin/agents/` pins an explicit model: `swe-2-flash-medium` for mechanical work and standards review (`merger`, `standards-reviewer`), `swe-2-flash-high` for implementation and spec review (`swe-worker`, `spec-reviewer`), and `gpt-6.1-sol-high` for research and interface design (`researcher`, `design-variant`). The `.claude/agents/` profiles mirror those tiers on `sonnet` with matching `effort`; the parent session is the Opus orchestrator.
|
|
81
|
+
|
|
82
|
+
When a run explicitly requires a different model, launch a clean Devin session with `devin --model`, or use a dedicated profile that existed before the orchestrator session starts (`swe-worker-flash-max`, `spec-reviewer-max`); do not edit a shared profile mid-run. If an embedded parent session's inherited environment hides CLI auth, retry `devin` with a minimal environment before treating child sessions as unavailable. After spawning a model-sensitive subagent, verify the server-reported model (`/session-stats` or runtime response metadata) before letting it do real work. The headless child-session recipe, the `resolved_model_uid` log check and the `--sandbox` trade-off live in `docs/agents/child-sessions.md`.
|
|
83
|
+
|
|
84
|
+
Never let a reviewer, merger, implementer or exploration subagent run on the orchestrator's model. This holds in Devin cloud too, where a step may run as a child session instead of a profile subagent: name the model explicitly, the profile's model or `swe-2-flash-high` when unsure. If no profile or explicit model is available, run the step inline in the parent instead of spawning a copy of it; for `/code-review`, that means one inline pass per axis, not two spawned sessions.
|
|
85
|
+
|
|
86
|
+
### Issue tracker
|
|
87
|
+
|
|
88
|
+
GitHub Issues on `rubjpDev/k0ntrol`. Apply the title prefix in `docs/agents/issue-tracker.md`.
|
|
89
|
+
|
|
90
|
+
### Triage labels
|
|
91
|
+
|
|
92
|
+
Default role names: `needs-triage`, `needs-info`, `ready-for-agent`, `ready-for-human`, `wontfix`. See `docs/agents/triage-labels.md`.
|
|
93
|
+
|
|
94
|
+
### Domain docs
|
|
95
|
+
|
|
96
|
+
Single-context: one `GLOSSARY.md` and `docs/adr/` at the repo root. See `docs/agents/domain.md`.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to k0ntrol are recorded here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
4
|
+
|
|
5
|
+
Versioning: a stable release is `x.y.0`, and a patch release `x.y.z` with `z > 0` is unstable.
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- **PyPI package** `k0ntrol-cli`: `uv tool install "k0ntrol-cli[openai]"` installs k0 without cloning the repo. PyPI refuses the name `k0ntrol` as too close to `kontrol`. Pushing a release tag publishes it through PyPI Trusted Publishing ([#224](https://github.com/rubjpDev/k0ntrol/issues/224)).
|
|
12
|
+
|
|
13
|
+
## [0.1.0] - 2026-11-24
|
|
14
|
+
|
|
15
|
+
The first stable release. k0 moves from a single-pass pipeline to a LangGraph workflow: plan with a human, build one ticket at a time test-first, review twice, and let the human merge. Release evidence: [docs/releases/0.1.0.md](docs/releases/0.1.0.md).
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- **Workflow graph** on LangGraph ([ADR 0002](docs/adr/0002-agents-run-as-a-langgraph-workflow-graph.md)). Code routes between agents, gates are code or the human, every agent run starts with fresh context, and k0 never merges.
|
|
20
|
+
- **Agent roster.** PLANNER, RESEARCHER, IMPLEMENTER, REVIEWER and CHATTY each have a tool allowlist enforced in code, and VALIDATOR is a code gate ([ADR 0001](docs/adr/0001-validator-is-a-code-gate-and-agents-get-run-tests-not-a-shell.md)) ([#135](https://github.com/rubjpDev/k0ntrol/pull/135), [#145](https://github.com/rubjpDev/k0ntrol/pull/145)).
|
|
21
|
+
- **`/plan`:** Q&A rounds with recommended answers, a question-limit gate, spec and ticket gates, and specs and tickets published on GitHub with blocking links ([ADR 0012](docs/adr/0012-work-is-planned-on-the-tracker-as-a-spec-and-its-tickets.md)) ([#153](https://github.com/rubjpDev/k0ntrol/pull/153), [#156](https://github.com/rubjpDev/k0ntrol/pull/156), [#161](https://github.com/rubjpDev/k0ntrol/pull/161), [#163](https://github.com/rubjpDev/k0ntrol/pull/163)).
|
|
22
|
+
- **`/research`:** charts a Map of decision tickets and works them through RESEARCHER, PLANNER or the human, and `/plan #<map>` turns a decided Map into a spec ([#154](https://github.com/rubjpDev/k0ntrol/pull/154), [#157](https://github.com/rubjpDev/k0ntrol/pull/157), [#162](https://github.com/rubjpDev/k0ntrol/pull/162)).
|
|
23
|
+
- **`/implement #<ticket>`:** builds on a ticket branch to a draft PR, and REVIEWER posts separate Conventions and Contract reviews before the review gate ([#152](https://github.com/rubjpDev/k0ntrol/pull/152), [#155](https://github.com/rubjpDev/k0ntrol/pull/155), [#160](https://github.com/rubjpDev/k0ntrol/pull/160)).
|
|
24
|
+
- **`/implement <task>`:** works in the working tree with a seam gate and a diff gate ([#146](https://github.com/rubjpDev/k0ntrol/pull/146), [#170](https://github.com/rubjpDev/k0ntrol/pull/170), [#171](https://github.com/rubjpDev/k0ntrol/pull/171)).
|
|
25
|
+
- **Red-to-green slice guard:** IMPLEMENTER's write tools refuse code before a failing test and tests while one is failing, and a red slice escalates to a human recovery gate ([ADR 0011](docs/adr/0011-one-implementer-builds-red-to-green-slices-under-a-code-guard.md), [ADR 0015](docs/adr/0015-a-red-slice-escalates-to-a-human-recovery-gate.md)) ([#136](https://github.com/rubjpDev/k0ntrol/pull/136), [#184](https://github.com/rubjpDev/k0ntrol/pull/184)).
|
|
26
|
+
- **`/triage #<issue>`:** labels a raw issue and posts an agent brief, and untrusted issues are refused with a next step ([#157](https://github.com/rubjpDev/k0ntrol/pull/157), [#186](https://github.com/rubjpDev/k0ntrol/pull/186)).
|
|
27
|
+
- **REPL modes:** Chat, Plan and Implement, cycled with Shift+Tab, with a bare `#42` running `/implement #42` ([#164](https://github.com/rubjpDev/k0ntrol/pull/164)).
|
|
28
|
+
- **Providers** through LangChain: Anthropic, OpenAI, Amazon Bedrock, Ollama, OpenRouter and Google Vertex, each an optional install extra ([ADR 0004](docs/adr/0004-providers-replace-the-cursor-backend.md), [ADR 0008](docs/adr/0008-the-0-1-0-runtime-dependencies-and-provider-extras.md)).
|
|
29
|
+
- **Network tools for PLANNER and RESEARCHER only:** `fetch_url` and `web_search` through Brave ([ADR 0013](docs/adr/0013-planner-and-researcher-get-read-only-network-tools.md)) ([#143](https://github.com/rubjpDev/k0ntrol/pull/143)).
|
|
30
|
+
- **Provider-native web search,** opt-in with `search.native: true`: OpenAI's built-in search and Anthropic's server search, capped per call. A model that can't search warns and runs without search, never falling back to Brave ([ADR 0017](docs/adr/0017-planner-and-researcher-can-use-the-providers-own-web-search.md)) ([#195](https://github.com/rubjpDev/k0ntrol/pull/195), [#210](https://github.com/rubjpDev/k0ntrol/pull/210)).
|
|
31
|
+
- **Run accounting:** one JSONL event per model call, a per-run cost line, read-only Reflect proposals after rough runs, and the `/klog` HTML report ([#169](https://github.com/rubjpDev/k0ntrol/pull/169), [#172](https://github.com/rubjpDev/k0ntrol/pull/172)).
|
|
32
|
+
- **Trusted App logins:** a `trusted_authors` list lets GitHub App identities round-trip their own artifacts ([ADR 0016](docs/adr/0016-repo-configured-app-logins-join-the-trusted-authors.md)) ([#188](https://github.com/rubjpDev/k0ntrol/pull/188)).
|
|
33
|
+
|
|
34
|
+
### Changed
|
|
35
|
+
|
|
36
|
+
- **OpenAI is the default provider.** The shipped defaults use `gpt-6.1-terra` for PLANNER, RESEARCHER and REVIEWER, and `gpt-6-luna` for IMPLEMENTER, CHATTY and the helpers. Setup offers OpenAI first.
|
|
37
|
+
- **Setup and `k0 doctor`:** OpenAI defaults to the Responses API, effort options keep a fixed order, a missing key prints one line, and a fresh home gets a set-up hint ([#206](https://github.com/rubjpDev/k0ntrol/pull/206)).
|
|
38
|
+
- **RESEARCHER** shares the strong model with PLANNER and REVIEWER, and IMPLEMENTER gets its own setup question ([#212](https://github.com/rubjpDev/k0ntrol/pull/212)).
|
|
39
|
+
- **Preflight** checks only the services a command uses ([#185](https://github.com/rubjpDev/k0ntrol/pull/185)).
|
|
40
|
+
- **Done gate:** the CI gate, `./scripts/check`, is the done gate, and the suite runs in parallel ([ADR 0009](docs/adr/0009-the-suite-runs-in-parallel-and-the-tdd-loop-runs-only-the-tests-in-play.md), [ADR 0014](docs/adr/0014-the-done-gate-is-the-ci-gate.md)).
|
|
41
|
+
|
|
42
|
+
### Removed
|
|
43
|
+
|
|
44
|
+
- **`/fast` and `/full`,** replaced by `/plan` and `/implement` ([#165](https://github.com/rubjpDev/k0ntrol/pull/165)).
|
|
45
|
+
- **The `spec`, `tester` and `coder` agent keys.** Config that still uses them fails with a message naming `planner` and `implementer` ([#166](https://github.com/rubjpDev/k0ntrol/pull/166)).
|
|
46
|
+
- **LM Studio** from the setup menu. A hand-written LM Studio config still loads.
|
|
47
|
+
|
|
48
|
+
### Fixed
|
|
49
|
+
|
|
50
|
+
- **Run safety:** pickers ignore keys typed before they open, the review gate lists every file that will be pushed (the refreshed knowledge graph in its own commit), and Ctrl-C pauses a run instead of failing it ([#207](https://github.com/rubjpDev/k0ntrol/pull/207)).
|
|
51
|
+
- **Output:** `/ask` renders its answer as one block, `/research` stops at its Map gate, `NO_COLOR` is honoured everywhere, and klog shows run status and prices correctly ([#208](https://github.com/rubjpDev/k0ntrol/pull/208)).
|
|
52
|
+
- **Private run files** stay out of k0's commits and pushes, a malformed test can recover under a human decision, and a missing or refused review can't mark a PR ready ([#184](https://github.com/rubjpDev/k0ntrol/pull/184)).
|
|
53
|
+
- **Resume:** a reviewed change resumes at its reviews and is never re-implemented ([#189](https://github.com/rubjpDev/k0ntrol/pull/189)).
|
|
54
|
+
- **Retries:** Bedrock timeouts and transport breaks retry as transient errors ([#187](https://github.com/rubjpDev/k0ntrol/pull/187)).
|
|
55
|
+
- **Config:** output-token caps such as `max_tokens` are no longer refused as secrets ([#198](https://github.com/rubjpDev/k0ntrol/pull/198)).
|
|
56
|
+
- **Tests** never read the developer's real home config or credentials ([#201](https://github.com/rubjpDev/k0ntrol/pull/201)).
|
|
57
|
+
|
|
58
|
+
### Security
|
|
59
|
+
|
|
60
|
+
- **Tool safety** relies on process hygiene and code guards ([ADR 0006](docs/adr/0006-tool-safety-is-process-hygiene-and-code-guards-not-a-sandbox.md)). Test runs get a scrubbed environment, path guards resolve symlinks and skip ignored files, tracker content is trusted only from repo members, and a CI gate holds back any push that changes `.github/`. Agent-written code runs as you, with no OS sandbox.
|
|
61
|
+
|
|
62
|
+
### Known limitations
|
|
63
|
+
|
|
64
|
+
- **GitHub is the only tracker.** GitLab, Linear and Jira are marked "coming soon" in setup.
|
|
65
|
+
- **UI polish** from the 0.1.0 pass is tracked for 0.1.1 in [#215](https://github.com/rubjpDev/k0ntrol/issues/215).
|
|
66
|
+
|
|
67
|
+
[Unreleased]: https://github.com/rubjpDev/k0ntrol/compare/v0.1.0...HEAD
|
|
68
|
+
[0.1.0]: https://github.com/rubjpDev/k0ntrol/releases/tag/v0.1.0
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# k0ntrol
|
|
2
|
+
|
|
3
|
+
k0ntrol (`k0`) is a local harness for coding agents: a human defines work and approves gates, and a workflow of agents writes tests, code and reviews against the repo's tracker and memory.
|
|
4
|
+
|
|
5
|
+
## Language
|
|
6
|
+
|
|
7
|
+
### Workflow
|
|
8
|
+
|
|
9
|
+
**Agent**:
|
|
10
|
+
A model with its own prompt and tool allowlist that the harness runs with fresh context: PLANNER, RESEARCHER, IMPLEMENTER and REVIEWER as nodes of the workflow graph, CHATTY on its own for `/ask`.
|
|
11
|
+
_Avoid_: Mode, worker, bot
|
|
12
|
+
|
|
13
|
+
**PLANNER**:
|
|
14
|
+
The agent that runs a Q&A definition with the human and turns its answers into the work to build.
|
|
15
|
+
_Avoid_: SPEC, griller, interviewer
|
|
16
|
+
|
|
17
|
+
**Q&A definition**:
|
|
18
|
+
The planning session in which PLANNER asks the human numbered questions in rounds, each with its recommended answer, until nothing is left to decide or the question limit is reached.
|
|
19
|
+
_Avoid_: Grilling, interview, refinement
|
|
20
|
+
|
|
21
|
+
**RESEARCHER**:
|
|
22
|
+
The read-only agent that answers a research decision ticket from primary sources on the web and proposes the decision, with citations.
|
|
23
|
+
_Avoid_: Searcher, crawler
|
|
24
|
+
|
|
25
|
+
**IMPLEMENTER**:
|
|
26
|
+
The agent that builds one piece of work test-first, one red-to-green slice at a time; the harness lets it change code only after a new test has failed.
|
|
27
|
+
_Avoid_: TESTER, CODER (the two roles it replaces), developer
|
|
28
|
+
|
|
29
|
+
**Conventions review**:
|
|
30
|
+
REVIEWER's judgement of a change against the repo's documented coding rules and a fixed list of code smells, leaving anything a gate already checks to the gate.
|
|
31
|
+
_Avoid_: Standards review, style review, lint
|
|
32
|
+
|
|
33
|
+
**Contract review**:
|
|
34
|
+
REVIEWER's judgement of a change against its work item: what is missing, what was not asked for, and what looks wrong.
|
|
35
|
+
_Avoid_: Spec review, acceptance review
|
|
36
|
+
|
|
37
|
+
**Workflow graph**:
|
|
38
|
+
The graph of agents and the code-defined edges that decide which agent runs next.
|
|
39
|
+
_Avoid_: Graph (alone), pipeline, loop
|
|
40
|
+
|
|
41
|
+
**Tool allowlist**:
|
|
42
|
+
The fixed set of tools an agent may call, enforced in code.
|
|
43
|
+
_Avoid_: Permissions (alone), capabilities
|
|
44
|
+
|
|
45
|
+
**Path guard**:
|
|
46
|
+
The code check that keeps a tool's path inside the files an agent may see and, for writes, the paths its role may change.
|
|
47
|
+
_Avoid_: Sandbox, jail
|
|
48
|
+
|
|
49
|
+
**Gate**:
|
|
50
|
+
A pass/fail decision taken by code or by the human, never by a prompt alone. VALIDATOR is the gate that runs the test command and the configured checks; it is not an agent.
|
|
51
|
+
_Avoid_: Check, approval step
|
|
52
|
+
|
|
53
|
+
**Helper**:
|
|
54
|
+
A one-shot model call made by the harness or by a tool, with no tools of its own and no place in the workflow graph (`bulk_read`, reflect).
|
|
55
|
+
_Avoid_: Mode, stage, agent
|
|
56
|
+
|
|
57
|
+
**Run**:
|
|
58
|
+
One execution of the workflow graph for a work item or a task entered at the prompt, from start to its outcome: `done`, `stuck` or `rejected`.
|
|
59
|
+
_Avoid_: Job, session, attempt
|
|
60
|
+
|
|
61
|
+
**Limit**:
|
|
62
|
+
A cap the harness enforces on how many model calls one agent run may make, how many automatic attempts one loop of a run may take, or how many questions one Q&A definition may ask. Hitting one pauses the run until the human decides how it goes on.
|
|
63
|
+
_Avoid_: Budget, quota
|
|
64
|
+
|
|
65
|
+
**Slice journal**:
|
|
66
|
+
The durable per-path record of what IMPLEMENTER wrote during one red-to-green slice, kept under `.k0-mem/snapshots/`. It opens at the slice's first permitted test write and closes at the green verdict or seam that ends the slice, so writes before that boundary are never journaled. When a red slice's test-write refusals hit their bound the run pauses at the recovery gate, and `recover` restores exactly the journaled paths.
|
|
67
|
+
_Avoid_: Backup, undo list, checkpoint (a checkpoint is the graph's own resume state)
|
|
68
|
+
|
|
69
|
+
**Event**:
|
|
70
|
+
One line of k0's event log recording a model call, a tool call, a gate, or the start or end of a run.
|
|
71
|
+
_Avoid_: Log entry, span, trace
|
|
72
|
+
|
|
73
|
+
**Harness**:
|
|
74
|
+
The deterministic program that owns the workflow graph, its gates and its tool allowlists. It is not an agent.
|
|
75
|
+
_Avoid_: Orchestrator, supervisor
|
|
76
|
+
|
|
77
|
+
### Work
|
|
78
|
+
|
|
79
|
+
**Tracker**:
|
|
80
|
+
The issue system a repo picks at `k0 init` (GitHub, GitLab, Linear, Jira) where work items live.
|
|
81
|
+
_Avoid_: Backlog, board
|
|
82
|
+
|
|
83
|
+
**Work item**:
|
|
84
|
+
One issue in the tracker (a GitHub issue, a Jira or Linear task); the carrier of what an agent is asked to do. A spec, a ticket, a map and a decision ticket are all work items.
|
|
85
|
+
_Avoid_: Spec file, task file
|
|
86
|
+
|
|
87
|
+
**Spec**:
|
|
88
|
+
The parent work item a Q&A definition produces: the problem, the solution, the user stories and the decisions, with its tickets beneath it. In Jira terms, an epic.
|
|
89
|
+
_Avoid_: Epic (outside Jira), brief, design doc
|
|
90
|
+
|
|
91
|
+
**Ticket**:
|
|
92
|
+
A child work item of a spec: one thin slice that works end to end, names the tickets that block it, and is sized for one IMPLEMENTER run.
|
|
93
|
+
_Avoid_: Task (alone), story, subtask
|
|
94
|
+
|
|
95
|
+
**Map**:
|
|
96
|
+
The work item `/research` charts when a question is too foggy to settle in one Q&A definition: its destination, the decisions so far, and decision tickets beneath it.
|
|
97
|
+
_Avoid_: Roadmap, research plan
|
|
98
|
+
|
|
99
|
+
**Decision ticket**:
|
|
100
|
+
A child work item of a map whose resolution is a decision, not code.
|
|
101
|
+
_Avoid_: Spike, research ticket
|
|
102
|
+
|
|
103
|
+
**Agent brief**:
|
|
104
|
+
The comment triage posts on a raw work item to make it ready for an agent: what to build, the seams and the acceptance criteria.
|
|
105
|
+
_Avoid_: Spec (a brief is not a spec), triage notes
|
|
106
|
+
|
|
107
|
+
**Seam**:
|
|
108
|
+
The public boundary a piece of work is tested at, agreed with the human before the first test; IMPLEMENTER writes tests nowhere else.
|
|
109
|
+
_Avoid_: Test boundary, test surface
|
|
110
|
+
|
|
111
|
+
**Trusted author**:
|
|
112
|
+
A tracker account with write access to the repo. Only trusted authors' content in a work item reaches agents.
|
|
113
|
+
_Avoid_: Maintainer, collaborator (alone)
|
|
114
|
+
|
|
115
|
+
**Change**:
|
|
116
|
+
The branch and its pull or merge request that propose the code for one work item. Trackers without a code host have none.
|
|
117
|
+
_Avoid_: PR (when meaning the tracker-neutral concept), patch
|
|
118
|
+
|
|
119
|
+
### Memory
|
|
120
|
+
|
|
121
|
+
**Code graph**:
|
|
122
|
+
The scanner's typed nodes and edges of the codebase, stored as `graph.json` in `.k0-mem/`.
|
|
123
|
+
_Avoid_: Graph (alone), knowledge graph
|
|
124
|
+
|
|
125
|
+
**Project memory**:
|
|
126
|
+
The committed memory every agent can read: the code graph, file notes, `Mem.md`, `Rules.md` and topology. Only humans and the scanner change it.
|
|
127
|
+
_Avoid_: Knowledge base, context (alone)
|
|
128
|
+
|
|
129
|
+
**Session memory**:
|
|
130
|
+
The facts reflect distills from transcripts. It stays local and is never committed.
|
|
131
|
+
_Avoid_: History, chat log
|
|
132
|
+
|
|
133
|
+
**Reflect**:
|
|
134
|
+
The background pass after each run that turns its transcript into session memory and proposes additions to `Mem.md`. After a stuck run or a redo, it can also suggest gates, coding rules or navigation hints for the human, without applying them.
|
|
135
|
+
_Avoid_: Summarize, consolidate
|
|
136
|
+
|
|
137
|
+
**Provider**:
|
|
138
|
+
Where a model runs: a local runtime (Ollama, LM Studio), a lab API, an aggregator or a cloud.
|
|
139
|
+
_Avoid_: Backend, vendor
|
|
140
|
+
|
|
141
|
+
**Effort**:
|
|
142
|
+
How hard an agent's or helper's model reasons on each call: low, medium or high, or the provider's default when unset or when the model offers no such setting.
|
|
143
|
+
_Avoid_: Tier, thinking budget, reasoning level
|
|
@@ -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 2026 Ruben Juarez Perez
|
|
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.
|