tselora 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.
Files changed (168) hide show
  1. tselora-0.1.0/.editorconfig +18 -0
  2. tselora-0.1.0/.gitignore +91 -0
  3. tselora-0.1.0/CHANGELOG.md +18 -0
  4. tselora-0.1.0/CODE_OF_CONDUCT.md +132 -0
  5. tselora-0.1.0/CONTRIBUTING.md +85 -0
  6. tselora-0.1.0/LICENSE +201 -0
  7. tselora-0.1.0/PKG-INFO +419 -0
  8. tselora-0.1.0/README.md +179 -0
  9. tselora-0.1.0/SECURITY.md +31 -0
  10. tselora-0.1.0/adapters/README.md +7 -0
  11. tselora-0.1.0/adapters/__init__.py +4 -0
  12. tselora-0.1.0/adapters/langgraph/README.md +15 -0
  13. tselora-0.1.0/adapters/langgraph/__init__.py +22 -0
  14. tselora-0.1.0/adapters/langgraph/handler.py +394 -0
  15. tselora-0.1.0/adapters/langgraph/safe.py +45 -0
  16. tselora-0.1.0/adapters/otel/README.md +7 -0
  17. tselora-0.1.0/adapters/otel/__init__.py +19 -0
  18. tselora-0.1.0/adapters/otel/processor.py +304 -0
  19. tselora-0.1.0/adapters/otel/safe.py +45 -0
  20. tselora-0.1.0/adapters/python/README.md +3 -0
  21. tselora-0.1.0/adapters/python/__init__.py +4 -0
  22. tselora-0.1.0/cli/README.md +12 -0
  23. tselora-0.1.0/cli/__init__.py +1 -0
  24. tselora-0.1.0/cli/main.py +90 -0
  25. tselora-0.1.0/core/__init__.py +1 -0
  26. tselora-0.1.0/core/context.py +120 -0
  27. tselora-0.1.0/core/events/README.md +12 -0
  28. tselora-0.1.0/core/events/__init__.py +17 -0
  29. tselora-0.1.0/core/events/ids.py +15 -0
  30. tselora-0.1.0/core/events/schema.py +58 -0
  31. tselora-0.1.0/core/events/sequence.py +35 -0
  32. tselora-0.1.0/core/events/types.py +55 -0
  33. tselora-0.1.0/core/projection/README.md +5 -0
  34. tselora-0.1.0/core/projection/__init__.py +28 -0
  35. tselora-0.1.0/core/projection/engine.py +235 -0
  36. tselora-0.1.0/core/projection/graph.py +58 -0
  37. tselora-0.1.0/core/projection/live.py +219 -0
  38. tselora-0.1.0/core/projection/models.py +90 -0
  39. tselora-0.1.0/core/projection/patches.py +95 -0
  40. tselora-0.1.0/core/projection/timeline.py +25 -0
  41. tselora-0.1.0/core/redaction.py +38 -0
  42. tselora-0.1.0/docs/Agent_Execution_Intelligence_Architecture_and_Execution_Plan_v0.2_Concrete.docx +0 -0
  43. tselora-0.1.0/docs/adr/ADR-001-event-protocol.md +42 -0
  44. tselora-0.1.0/docs/adr/ADR-002-event-ordering.md +38 -0
  45. tselora-0.1.0/docs/adr/ADR-003-node-identity.md +39 -0
  46. tselora-0.1.0/docs/adr/ADR-004-projection-engine.md +40 -0
  47. tselora-0.1.0/docs/adr/ADR-005-websocket-patches.md +47 -0
  48. tselora-0.1.0/docs/adr/ADR-006-file-based-persistence.md +50 -0
  49. tselora-0.1.0/docs/adr/ADR-007-live-sequence-gap.md +77 -0
  50. tselora-0.1.0/docs/architecture/adapters-langgraph.md +465 -0
  51. tselora-0.1.0/docs/architecture/adapters-otel.md +214 -0
  52. tselora-0.1.0/docs/architecture/concurrency.md +52 -0
  53. tselora-0.1.0/docs/architecture/data-flow.md +96 -0
  54. tselora-0.1.0/docs/architecture/event-protocol.md +120 -0
  55. tselora-0.1.0/docs/architecture/execution-model.md +75 -0
  56. tselora-0.1.0/docs/architecture/framework-adapters.md +63 -0
  57. tselora-0.1.0/docs/architecture/open-questions.md +51 -0
  58. tselora-0.1.0/docs/architecture/overview.md +94 -0
  59. tselora-0.1.0/docs/architecture/persistence.md +86 -0
  60. tselora-0.1.0/docs/architecture/projection-model.md +71 -0
  61. tselora-0.1.0/docs/architecture/replay.md +53 -0
  62. tselora-0.1.0/docs/architecture/runtime-control.md +45 -0
  63. tselora-0.1.0/docs/assets/tselora-demo.gif +0 -0
  64. tselora-0.1.0/docs/development/development-guide.md +149 -0
  65. tselora-0.1.0/docs/development/getting-started.md +101 -0
  66. tselora-0.1.0/docs/development/testing-strategy.md +37 -0
  67. tselora-0.1.0/docs/product/roadmap.md +34 -0
  68. tselora-0.1.0/docs/product/scope.md +32 -0
  69. tselora-0.1.0/docs/product/v1.md +52 -0
  70. tselora-0.1.0/docs/product/vision.md +74 -0
  71. tselora-0.1.0/examples/README.md +17 -0
  72. tselora-0.1.0/examples/langgraph_stategraph.py +63 -0
  73. tselora-0.1.0/examples/otel_spans.py +45 -0
  74. tselora-0.1.0/examples/simple_agent.py +28 -0
  75. tselora-0.1.0/examples/structured_execution.py +84 -0
  76. tselora-0.1.0/pyproject.toml +83 -0
  77. tselora-0.1.0/sdk/README.md +7 -0
  78. tselora-0.1.0/sdk/__init__.py +23 -0
  79. tselora-0.1.0/sdk/batcher.py +105 -0
  80. tselora-0.1.0/sdk/context.py +55 -0
  81. tselora-0.1.0/sdk/decorators.py +277 -0
  82. tselora-0.1.0/sdk/emitter.py +67 -0
  83. tselora-0.1.0/sdk/transport.py +41 -0
  84. tselora-0.1.0/server/__init__.py +4 -0
  85. tselora-0.1.0/server/api/README.md +5 -0
  86. tselora-0.1.0/server/api/__init__.py +4 -0
  87. tselora-0.1.0/server/api/runs.py +70 -0
  88. tselora-0.1.0/server/collector/README.md +5 -0
  89. tselora-0.1.0/server/collector/__init__.py +5 -0
  90. tselora-0.1.0/server/collector/app.py +69 -0
  91. tselora-0.1.0/server/storage/README.md +7 -0
  92. tselora-0.1.0/server/storage/__init__.py +5 -0
  93. tselora-0.1.0/server/storage/jsonl.py +89 -0
  94. tselora-0.1.0/server/ws.py +170 -0
  95. tselora-0.1.0/tests/.gitkeep +1 -0
  96. tselora-0.1.0/tests/README.md +5 -0
  97. tselora-0.1.0/tests/conftest.py +25 -0
  98. tselora-0.1.0/tests/test_api_replay.py +110 -0
  99. tselora-0.1.0/tests/test_api_runs.py +283 -0
  100. tselora-0.1.0/tests/test_batcher.py +193 -0
  101. tselora-0.1.0/tests/test_cli.py +60 -0
  102. tselora-0.1.0/tests/test_collector.py +56 -0
  103. tselora-0.1.0/tests/test_collector_live.py +132 -0
  104. tselora-0.1.0/tests/test_context.py +37 -0
  105. tselora-0.1.0/tests/test_decorators.py +311 -0
  106. tselora-0.1.0/tests/test_e2e.py +89 -0
  107. tselora-0.1.0/tests/test_ids.py +13 -0
  108. tselora-0.1.0/tests/test_jsonl.py +52 -0
  109. tselora-0.1.0/tests/test_langgraph_adapter.py +340 -0
  110. tselora-0.1.0/tests/test_langgraph_real_stategraph.py +150 -0
  111. tselora-0.1.0/tests/test_live_projection.py +239 -0
  112. tselora-0.1.0/tests/test_node_payload.py +187 -0
  113. tselora-0.1.0/tests/test_otel_adapter.py +225 -0
  114. tselora-0.1.0/tests/test_package_boundary.py +44 -0
  115. tselora-0.1.0/tests/test_patches.py +316 -0
  116. tselora-0.1.0/tests/test_projection.py +602 -0
  117. tselora-0.1.0/tests/test_redaction.py +32 -0
  118. tselora-0.1.0/tests/test_schema.py +58 -0
  119. tselora-0.1.0/tests/test_sdk_context.py +181 -0
  120. tselora-0.1.0/tests/test_sequence.py +22 -0
  121. tselora-0.1.0/tests/test_structured_execution.py +142 -0
  122. tselora-0.1.0/tests/test_transport.py +34 -0
  123. tselora-0.1.0/tests/test_ws.py +295 -0
  124. tselora-0.1.0/ui/README.md +42 -0
  125. tselora-0.1.0/ui/index.html +12 -0
  126. tselora-0.1.0/ui/package-lock.json +3211 -0
  127. tselora-0.1.0/ui/package.json +27 -0
  128. tselora-0.1.0/ui/src/App.tsx +13 -0
  129. tselora-0.1.0/ui/src/api/rest.ts +52 -0
  130. tselora-0.1.0/ui/src/api/ws.ts +66 -0
  131. tselora-0.1.0/ui/src/components/ExecutionFlowNode.tsx +49 -0
  132. tselora-0.1.0/ui/src/components/ExecutionGraph.test.tsx +165 -0
  133. tselora-0.1.0/ui/src/components/ExecutionGraph.tsx +101 -0
  134. tselora-0.1.0/ui/src/components/LiveBadge.tsx +18 -0
  135. tselora-0.1.0/ui/src/components/NodeInspector.test.tsx +226 -0
  136. tselora-0.1.0/ui/src/components/NodeInspector.tsx +133 -0
  137. tselora-0.1.0/ui/src/components/NodeList.test.tsx +82 -0
  138. tselora-0.1.0/ui/src/components/NodeList.tsx +70 -0
  139. tselora-0.1.0/ui/src/components/ReplayScrubber.tsx +41 -0
  140. tselora-0.1.0/ui/src/components/RunHeader.tsx +34 -0
  141. tselora-0.1.0/ui/src/components/Timeline.test.tsx +147 -0
  142. tselora-0.1.0/ui/src/components/Timeline.tsx +80 -0
  143. tselora-0.1.0/ui/src/components/chrome.test.tsx +144 -0
  144. tselora-0.1.0/ui/src/index.css +382 -0
  145. tselora-0.1.0/ui/src/inspect/selection.test.ts +60 -0
  146. tselora-0.1.0/ui/src/inspect/selection.ts +28 -0
  147. tselora-0.1.0/ui/src/main.tsx +14 -0
  148. tselora-0.1.0/ui/src/pages/RunPage.test.tsx +76 -0
  149. tselora-0.1.0/ui/src/pages/RunPage.tsx +112 -0
  150. tselora-0.1.0/ui/src/present/executionPresentation.ts +50 -0
  151. tselora-0.1.0/ui/src/present/index.ts +8 -0
  152. tselora-0.1.0/ui/src/present/liveBadge.ts +14 -0
  153. tselora-0.1.0/ui/src/present/ordinal.ts +17 -0
  154. tselora-0.1.0/ui/src/present/present.test.ts +267 -0
  155. tselora-0.1.0/ui/src/present/retryFamilies.ts +42 -0
  156. tselora-0.1.0/ui/src/present/runDisplayName.ts +24 -0
  157. tselora-0.1.0/ui/src/present/siblingGroups.ts +31 -0
  158. tselora-0.1.0/ui/src/present/timelinePresentation.ts +37 -0
  159. tselora-0.1.0/ui/src/present/titleCase.ts +19 -0
  160. tselora-0.1.0/ui/src/projection/applyPatch.test.ts +282 -0
  161. tselora-0.1.0/ui/src/projection/applyPatch.ts +41 -0
  162. tselora-0.1.0/ui/src/projection/cursor.ts +18 -0
  163. tselora-0.1.0/ui/src/state/runSession.test.ts +275 -0
  164. tselora-0.1.0/ui/src/state/runSession.ts +237 -0
  165. tselora-0.1.0/ui/src/types/projection.ts +88 -0
  166. tselora-0.1.0/ui/src/vite-env.d.ts +1 -0
  167. tselora-0.1.0/ui/tsconfig.json +22 -0
  168. tselora-0.1.0/ui/vite.config.ts +21 -0
@@ -0,0 +1,18 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ end_of_line = lf
6
+ insert_final_newline = true
7
+ trim_trailing_whitespace = true
8
+ indent_style = space
9
+ indent_size = 2
10
+
11
+ [*.py]
12
+ indent_size = 4
13
+
14
+ [*.md]
15
+ trim_trailing_whitespace = false
16
+
17
+ [Makefile]
18
+ indent_style = tab
@@ -0,0 +1,91 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ build/
8
+ develop-eggs/
9
+ dist/
10
+ downloads/
11
+ eggs/
12
+ .eggs/
13
+ lib/
14
+ lib64/
15
+ parts/
16
+ sdist/
17
+ var/
18
+ wheels/
19
+ share/python-wheels/
20
+ *.egg-info/
21
+ .installed.cfg
22
+ *.egg
23
+ pip-wheel-metadata/
24
+
25
+ # Virtual environments
26
+ .venv/
27
+ venv/
28
+ ENV/
29
+ env/
30
+
31
+ # Testing / coverage / type checkers
32
+ .pytest_cache/
33
+ .mypy_cache/
34
+ .ruff_cache/
35
+ .coverage
36
+ .coverage.*
37
+ htmlcov/
38
+ .tox/
39
+ .nox/
40
+ coverage.xml
41
+ *.cover
42
+
43
+ # Environment and secrets
44
+ .env
45
+ .env.*
46
+ !.env.example
47
+ credentials.json
48
+ *.pem
49
+ *.key
50
+ secrets/
51
+
52
+ # Local Tselora runtime data (authoritative event logs live here)
53
+ .agent-devtools/
54
+ .agent-devtools/runs/
55
+
56
+ # Node / React
57
+ node_modules/
58
+ npm-debug.log*
59
+ yarn-debug.log*
60
+ yarn-error.log*
61
+ pnpm-debug.log*
62
+ .pnpm-store/
63
+ dist/
64
+ .next/
65
+ out/
66
+ .turbo/
67
+ *.tsbuildinfo
68
+
69
+ # macOS
70
+ .DS_Store
71
+ .AppleDouble
72
+ .LSOverride
73
+ ._*
74
+ .Spotlight-V100
75
+ .Trashes
76
+
77
+ # IDEs / editors
78
+ .idea/
79
+ .vscode/
80
+ *.swp
81
+ *.swo
82
+ *~
83
+ .project
84
+ .settings/
85
+
86
+ # Jupyter
87
+ .ipynb_checkpoints/
88
+
89
+ # Logs
90
+ *.log
91
+ logs/
@@ -0,0 +1,18 @@
1
+ # Changelog
2
+
3
+ All notable changes to Tselora will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) once the event protocol is considered stable.
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.1.0] - 2026-09-22
11
+
12
+ ### Added
13
+
14
+ - First public Python package: local collector, SDK, CLI (`tselora serve`), REST/WebSocket, Explorer in-repo (not in the wheel)
15
+ - Optional extras `tselora[otel]` and `tselora[langgraph]` (LangGraph first slice)
16
+ - Architecture-first repository: protocol, projection, persistence, and product documentation
17
+ - ADRs 001–007
18
+ - Scaffolding for `core/`, `sdk/`, `server/`, `adapters/`, `ui/`, `cli/`, `examples/`, and `tests/`
@@ -0,0 +1,132 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, caste, color, religion, or sexual
10
+ identity and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the overall
26
+ community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or advances of
31
+ any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email address,
35
+ without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ spalakollu@gmail.com.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series of
86
+ actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.1, available at
119
+ [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120
+
121
+ Community Impact Guidelines were inspired by
122
+ [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123
+
124
+ For answers to common questions about this code of conduct, see the FAQ at
125
+ [https://www.contributor-covenant.org/faq][FAQ]. Translations are available
126
+ at [https://www.contributor-covenant.org/translations][translations].
127
+
128
+ [homepage]: https://www.contributor-covenant.org
129
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130
+ [Mozilla CoC]: https://github.com/mozilla/diversity
131
+ [FAQ]: https://www.contributor-covenant.org/faq
132
+ [translations]: https://www.contributor-covenant.org/translations
@@ -0,0 +1,85 @@
1
+ # Contributing to Tselora
2
+
3
+ Thank you for helping build Tselora. This project is **architecture-first**: protocol and invariants come before features.
4
+
5
+ ## Setup
6
+
7
+ See [docs/development/getting-started.md](docs/development/getting-started.md).
8
+
9
+ Summary:
10
+
11
+ 1. Python 3.12+
12
+ 2. Create a virtualenv and install the project in editable mode with `dev` extras once implementation exists (`pip install -e ".[dev]"`).
13
+ 3. UI: Node in `ui/` — one-run React viewer (graph, timeline, node list, node inspector, Why? from `NodeState.payload`, visualization/time-travel replay).
14
+ 4. Do not commit `.env`, credentials, or `.agent-devtools/runs/`.
15
+
16
+ ## Architecture-first development
17
+
18
+ Read before changing code:
19
+
20
+ - [docs/architecture/overview.md](docs/architecture/overview.md)
21
+ - [docs/product/v1.md](docs/product/v1.md)
22
+ - [docs/development/development-guide.md](docs/development/development-guide.md)
23
+ - Relevant ADRs in [docs/adr/](docs/adr/)
24
+
25
+ ### Documentation conflict rule
26
+
27
+ When documentation conflicts:
28
+
29
+ 1. Locked ADRs in [`docs/adr/`](docs/adr/) win for **implementation**.
30
+ 2. [`docs/product/v1.md`](docs/product/v1.md) wins for **v1 scope**.
31
+ 3. The long-form Architecture & Execution Plan (`docs/Agent_Execution_Intelligence_Architecture_and_Execution_Plan_v0.2_Concrete.docx`) **must be synchronized** rather than left contradictory.
32
+
33
+ If a change would alter a locked decision, open an ADR **first**. Do not silently change:
34
+
35
+ - Universal Agent Event Protocol shape
36
+ - JSONL as v1 source of truth
37
+ - ProjectionEngine as the only place execution semantics live
38
+ - framework-neutral core models
39
+
40
+ ## Tests
41
+
42
+ Changes that touch protocol, storage, projection, or context **must** add or update tests for the [invariants](docs/development/testing-strategy.md):
43
+
44
+ - unique `event_id`
45
+ - duplicate events are idempotent
46
+ - arrival order is not causal order
47
+ - `parent_event_id` defines edges
48
+ - stable logical `node_id` vs `execution_instance_id`
49
+ - deterministic ProjectionEngine
50
+ - rebuild ≡ incremental apply
51
+ - event log remains authoritative
52
+ - UI state reconstructible from the log
53
+
54
+ Do not merge protocol or projection changes without tests.
55
+
56
+ ## Event protocol compatibility
57
+
58
+ Never modify the Universal Event Protocol casually (Rule 1).
59
+
60
+ - Additive optional fields may be proposed with `schema_version` discussion.
61
+ - Renames, type changes, and new required fields need an ADR and a version bump plan.
62
+ - Adapters translate **into** the protocol. Framework objects must not leak into `core` models.
63
+
64
+ ## Framework-neutral core
65
+
66
+ `core/` must not import LangGraph, CrewAI, OpenAI Agents, Google ADK, or other framework SDKs. Framework-specific details belong in `adapters/` and in event `metadata` / extensions.
67
+
68
+ ## Proposing changes
69
+
70
+ 1. Issue: describe the problem, not only the patch.
71
+ 2. If architectural: draft an ADR (`docs/adr/ADR-NNN-title.md`) with Status, Context, Decision, Consequences, Alternatives.
72
+ 3. Implementation PR: small, tested, referenced ADR if any.
73
+ 4. Docs: update architecture or product docs in the same PR when behavior or scope changes.
74
+
75
+ ## Code quality
76
+
77
+ - Python 3.12+, modern typing
78
+ - Small, cohesive modules
79
+ - Explicit interfaces over magic
80
+ - No premature abstraction
81
+ - No new dependency unless it solves a clear v1 requirement
82
+
83
+ ## License
84
+
85
+ Contributions are under the [Apache License 2.0](LICENSE).
tselora-0.1.0/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required 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 Tselora contributors
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.