arkhai-kit-negotiation-runtime 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.
@@ -0,0 +1,232 @@
1
+ .vscode/
2
+
3
+ # Project-local scratch files, private notes, and generated diagnostics.
4
+ .scm-local/
5
+
6
+ # Visible transfer staging for snap-confined tools such as Multipass.
7
+ scm-clean-room-transfer/
8
+
9
+ # Legacy local rehearsal params (private keys, RPC URLs, etc.).
10
+ .rehearsal-params.local.md
11
+ .rehearsal-params.local.*
12
+
13
+ ### Python ###
14
+ # Byte-compiled / optimized / DLL files
15
+ __pycache__/
16
+ *.py[cod]
17
+ *$py.class
18
+
19
+ # C extensions
20
+ *.so
21
+
22
+ # Distribution / packaging
23
+ .Python
24
+ build/
25
+ develop-eggs/
26
+ dist/
27
+ downloads/
28
+ eggs/
29
+ .eggs/
30
+ lib/
31
+ lib64/
32
+ parts/
33
+ sdist/
34
+ var/
35
+ wheels/
36
+ share/python-wheels/
37
+ *.egg-info/
38
+ .installed.cfg
39
+ *.egg
40
+ MANIFEST
41
+
42
+ # PyInstaller
43
+ # Usually these files are written by a python script from a template
44
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
45
+ *.manifest
46
+ *.spec
47
+
48
+ # Installer logs
49
+ pip-log.txt
50
+ pip-delete-this-directory.txt
51
+
52
+ # Unit test / coverage reports
53
+ htmlcov/
54
+ .tox/
55
+ .nox/
56
+ .coverage
57
+ .coverage.*
58
+ .cache
59
+ nosetests.xml
60
+ coverage.xml
61
+ *.cover
62
+ *.py,cover
63
+ .hypothesis/
64
+ .pytest_cache/
65
+ cover/
66
+
67
+ # Translations
68
+ *.mo
69
+ *.pot
70
+
71
+ # Django stuff:
72
+ *.log
73
+ *.log.[0-9]*
74
+ local_settings.py
75
+ db.sqlite3
76
+ db.sqlite3-journal
77
+
78
+ # Flask stuff:
79
+ instance/
80
+ .webassets-cache
81
+
82
+ # Scrapy stuff:
83
+ .scrapy
84
+
85
+ # Sphinx documentation
86
+ docs/_build/
87
+
88
+ # PyBuilder
89
+ .pybuilder/
90
+ target/
91
+
92
+ # Jupyter Notebook
93
+ .ipynb_checkpoints
94
+
95
+ # IPython
96
+ profile_default/
97
+ ipython_config.py
98
+
99
+ # pyenv
100
+ # For a library or package, you might want to ignore these files since the code is
101
+ # intended to run in multiple environments; otherwise, check them in:
102
+ # .python-version
103
+
104
+ # pipenv
105
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
106
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
107
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
108
+ # install all needed dependencies.
109
+ #Pipfile.lock
110
+
111
+ # poetry
112
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
113
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
114
+ # commonly ignored for libraries.
115
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
116
+ #poetry.lock
117
+
118
+ # pdm
119
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
120
+ #pdm.lock
121
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
122
+ # in version control.
123
+ # https://pdm.fming.dev/#use-with-ide
124
+ .pdm.toml
125
+
126
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
127
+ __pypackages__/
128
+
129
+ # Celery stuff
130
+ celerybeat-schedule
131
+ celerybeat.pid
132
+
133
+ # SageMath parsed files
134
+ *.sage.py
135
+
136
+ # Environments
137
+ .env
138
+ .env.*
139
+ .venv
140
+ env/
141
+ venv/
142
+ ENV/
143
+ env.bak/
144
+ venv.bak/
145
+
146
+ # Spyder project settings
147
+ .spyderproject
148
+ .spyproject
149
+
150
+ # Rope project settings
151
+ .ropeproject
152
+
153
+ # mkdocs documentation
154
+ /site
155
+
156
+ # mypy
157
+ .mypy_cache/
158
+ .dmypy.json
159
+ dmypy.json
160
+
161
+ # Pyre type checker
162
+ .pyre/
163
+
164
+ # pytype static type analyzer
165
+ .pytype/
166
+
167
+ # Cython debug symbols
168
+ cython_debug/
169
+
170
+ # PyCharm
171
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
172
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
173
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
174
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
175
+ #.idea/
176
+
177
+ ### Python Patch ###
178
+ # Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
179
+ poetry.toml
180
+
181
+ # ruff
182
+ .ruff_cache/
183
+
184
+ # LSP config files
185
+ pyrightconfig.json
186
+
187
+ # Infra
188
+ infra/*/*.tfvars
189
+ infra/*/*.tfstate
190
+ infra/*/*.tfstate.backup
191
+ infra/*/.terraform*
192
+ infra/*/*.plan
193
+ *.db
194
+ # PufferRL Experiments
195
+ experiments/
196
+ wandb/
197
+ !.env.sample
198
+ !.env.docker-compose
199
+ !.env.*.docker-compose
200
+ !.env.*.docker-compose
201
+ !.env.docker-compose
202
+ .cursor/
203
+
204
+ # Cloud Function
205
+ node_modules
206
+
207
+ # Puffer artifacts — ignore any resources/ dir or symlink at any depth
208
+ **/resources
209
+ pr-message-puffer.md
210
+ dev-env/state/state.json
211
+ shared-env/*
212
+ helm/Chart.lock
213
+ helm/charts/*.tgz
214
+ helm/.port-forward.pids
215
+ provisioning-service/settings.local.toml
216
+ provisioning-service/src/config/config-local.yml
217
+ .snapshot/*
218
+
219
+ # Per-env deployment scratch dirs (carry keys + per-env configs)
220
+ deploy-base-sepolia/
221
+
222
+ # Claude Code per-project state; shared skills are repository-owned.
223
+ .claude/*
224
+ !.claude/skills/
225
+ !.claude/skills/**
226
+
227
+ # Local assistant session exports
228
+ omp-session-*.html
229
+ pi-session-*.html
230
+
231
+ # Local-only mise overrides (machine-specific paths).
232
+ mise.local.toml
@@ -0,0 +1,19 @@
1
+ DIST_DIR ?= ../../.dist
2
+ PYTHON_VERSION ?= 3.13
3
+
4
+ .PHONY: build init reinit test
5
+
6
+ build: ## Build the wheel into the shared .dist/
7
+ uv build --wheel --out-dir $(DIST_DIR)
8
+
9
+ init: ## Create or update the environment
10
+ uv venv --allow-existing --python $(PYTHON_VERSION)
11
+ uv sync --dev --python $(PYTHON_VERSION) --find-links $(DIST_DIR)
12
+
13
+ reinit: ## Reinstall kit dependencies from the shared wheelhouse
14
+ uv sync --dev --python $(PYTHON_VERSION) --find-links $(DIST_DIR) \
15
+ --upgrade-package arkhai-kit-identity --reinstall-package arkhai-kit-identity \
16
+ --upgrade-package arkhai-kit-policy --reinstall-package arkhai-kit-policy
17
+
18
+ test: reinit ## Run the focused unit suite
19
+ uv run pytest tests/unit -q
@@ -0,0 +1,8 @@
1
+ Metadata-Version: 2.5
2
+ Name: arkhai-kit-negotiation-runtime
3
+ Version: 0.1.0
4
+ Summary: Schema-opaque signed negotiation lifecycle, persistence, and recovery orchestration.
5
+ License-Expression: MIT
6
+ Requires-Python: <3.14,>=3.12
7
+ Requires-Dist: arkhai-kit-identity==0.3.0
8
+ Requires-Dist: arkhai-kit-policy==0.1.1
@@ -0,0 +1,29 @@
1
+ [project]
2
+ name = "arkhai-kit-negotiation-runtime"
3
+ version = "0.1.0"
4
+ license = "MIT"
5
+ description = "Schema-opaque signed negotiation lifecycle, persistence, and recovery orchestration."
6
+ requires-python = ">=3.12,<3.14"
7
+ dependencies = [
8
+ "arkhai-kit-identity==0.3.0",
9
+ "arkhai-kit-policy==0.1.1",
10
+ ]
11
+
12
+ [build-system]
13
+ requires = ["hatchling"]
14
+ build-backend = "hatchling.build"
15
+
16
+ [tool.hatch.build.targets.wheel]
17
+ packages = ["src/market_negotiation_runtime"]
18
+
19
+ [tool.pytest.ini_options]
20
+ pythonpath = ["src"]
21
+ testpaths = ["tests/unit"]
22
+ asyncio_mode = "auto"
23
+ asyncio_default_fixture_loop_scope = "function"
24
+
25
+ [dependency-groups]
26
+ dev = [
27
+ "pytest>=8.3.4,<9.0.0",
28
+ "pytest-asyncio>=0.23.8,<1.0.0",
29
+ ]
@@ -0,0 +1,35 @@
1
+ """Public schema-opaque negotiation runtime contract."""
2
+
3
+ from .runtime import (
4
+ Acceptance,
5
+ ActorRole,
6
+ AgreementTerms,
7
+ BuyerAction,
8
+ NegotiationDomainHooks,
9
+ NegotiationRuntime,
10
+ NegotiationStateError,
11
+ NegotiationTerms,
12
+ OfferUnfulfillableError,
13
+ OpeningRecord,
14
+ ResolvedNegotiation,
15
+ RoundEvaluation,
16
+ RoundRequest,
17
+ StorefrontPausedError,
18
+ )
19
+
20
+ __all__ = [
21
+ "Acceptance",
22
+ "ActorRole",
23
+ "AgreementTerms",
24
+ "BuyerAction",
25
+ "NegotiationDomainHooks",
26
+ "NegotiationRuntime",
27
+ "NegotiationStateError",
28
+ "NegotiationTerms",
29
+ "OfferUnfulfillableError",
30
+ "OpeningRecord",
31
+ "ResolvedNegotiation",
32
+ "RoundEvaluation",
33
+ "RoundRequest",
34
+ "StorefrontPausedError",
35
+ ]