b3-prosaic-harness-postgres 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- b3_prosaic_harness_postgres-0.2.1/LICENSE +202 -0
- b3_prosaic_harness_postgres-0.2.1/MANIFEST.in +2 -0
- b3_prosaic_harness_postgres-0.2.1/NOTICE +5 -0
- b3_prosaic_harness_postgres-0.2.1/PKG-INFO +222 -0
- b3_prosaic_harness_postgres-0.2.1/README.md +202 -0
- b3_prosaic_harness_postgres-0.2.1/pyproject.toml +22 -0
- b3_prosaic_harness_postgres-0.2.1/setup.cfg +4 -0
- b3_prosaic_harness_postgres-0.2.1/src/b3_prosaic_harness_postgres.egg-info/PKG-INFO +222 -0
- b3_prosaic_harness_postgres-0.2.1/src/b3_prosaic_harness_postgres.egg-info/SOURCES.txt +38 -0
- b3_prosaic_harness_postgres-0.2.1/src/b3_prosaic_harness_postgres.egg-info/dependency_links.txt +1 -0
- b3_prosaic_harness_postgres-0.2.1/src/b3_prosaic_harness_postgres.egg-info/entry_points.txt +2 -0
- b3_prosaic_harness_postgres-0.2.1/src/b3_prosaic_harness_postgres.egg-info/requires.txt +10 -0
- b3_prosaic_harness_postgres-0.2.1/src/b3_prosaic_harness_postgres.egg-info/top_level.txt +1 -0
- b3_prosaic_harness_postgres-0.2.1/src/prosaic_harness_postgres/__init__.py +6 -0
- b3_prosaic_harness_postgres-0.2.1/src/prosaic_harness_postgres/cli.py +81 -0
- b3_prosaic_harness_postgres-0.2.1/src/prosaic_harness_postgres/leases.py +64 -0
- b3_prosaic_harness_postgres-0.2.1/src/prosaic_harness_postgres/schema.py +135 -0
- b3_prosaic_harness_postgres-0.2.1/src/prosaic_harness_postgres/store.py +277 -0
- b3_prosaic_harness_postgres-0.2.1/src/prosaic_harness_postgres/transport.py +305 -0
- b3_prosaic_harness_postgres-0.2.1/tests/conftest.py +96 -0
- b3_prosaic_harness_postgres-0.2.1/tests/support/linux_wheel_smoke.py +75 -0
- b3_prosaic_harness_postgres-0.2.1/tests/support/local_cluster.py +277 -0
- b3_prosaic_harness_postgres-0.2.1/tests/support/model_server.py +47 -0
- b3_prosaic_harness_postgres-0.2.1/tests/support/tcp_proxy.py +91 -0
- b3_prosaic_harness_postgres-0.2.1/tests/support/workers.py +99 -0
- b3_prosaic_harness_postgres-0.2.1/tests/test_cli.py +104 -0
- b3_prosaic_harness_postgres-0.2.1/tests/test_durability.py +48 -0
- b3_prosaic_harness_postgres-0.2.1/tests/test_engine.py +60 -0
- b3_prosaic_harness_postgres-0.2.1/tests/test_examples.py +58 -0
- b3_prosaic_harness_postgres-0.2.1/tests/test_leases.py +96 -0
- b3_prosaic_harness_postgres-0.2.1/tests/test_local_cluster.py +25 -0
- b3_prosaic_harness_postgres-0.2.1/tests/test_native_factory.py +114 -0
- b3_prosaic_harness_postgres-0.2.1/tests/test_packaging.py +242 -0
- b3_prosaic_harness_postgres-0.2.1/tests/test_recovery.py +149 -0
- b3_prosaic_harness_postgres-0.2.1/tests/test_registration.py +390 -0
- b3_prosaic_harness_postgres-0.2.1/tests/test_routing.py +101 -0
- b3_prosaic_harness_postgres-0.2.1/tests/test_schema.py +96 -0
- b3_prosaic_harness_postgres-0.2.1/tests/test_store.py +78 -0
- b3_prosaic_harness_postgres-0.2.1/tests/test_transport.py +199 -0
- b3_prosaic_harness_postgres-0.2.1/tests/test_workers.py +19 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: b3-prosaic-harness-postgres
|
|
3
|
+
Version: 0.2.1
|
|
4
|
+
Summary: Explicit PostgreSQL run storage for Prosaic Harness
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Requires-Python: >=3.11
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
License-File: NOTICE
|
|
10
|
+
Requires-Dist: b3-prosaic-harness<0.8,>=0.7
|
|
11
|
+
Requires-Dist: psycopg[binary]<4,>=3.2.3
|
|
12
|
+
Requires-Dist: psycopg-pool<4,>=3.2
|
|
13
|
+
Provides-Extra: test
|
|
14
|
+
Requires-Dist: pytest>=8; extra == "test"
|
|
15
|
+
Requires-Dist: build>=1; extra == "test"
|
|
16
|
+
Requires-Dist: setuptools>=77; extra == "test"
|
|
17
|
+
Requires-Dist: wheel; extra == "test"
|
|
18
|
+
Requires-Dist: packaging; extra == "test"
|
|
19
|
+
Dynamic: license-file
|
|
20
|
+
|
|
21
|
+
# PostgreSQL persistence for Prosaic Harness
|
|
22
|
+
|
|
23
|
+
Run on worker A, inspect/resume on worker B, without a shared writable run
|
|
24
|
+
directory. Core remains database-free; install this separate adapter only when
|
|
25
|
+
you need shared durable state. The API is synchronous; a private I/O thread
|
|
26
|
+
bounds network waits. Model execution holds no database connection/transaction.
|
|
27
|
+
The current candidate is `b3-prosaic-harness-postgres` **0.2.0**, selecting
|
|
28
|
+
`b3-prosaic-harness>=0.7,<0.8`. The adapter is maintained in this repository but
|
|
29
|
+
installed and versioned separately, keeping PostgreSQL drivers optional for
|
|
30
|
+
Harness users. Imports and CLI names remain unchanged. Final qualification and
|
|
31
|
+
publication of the b3 release train are pending. The historical
|
|
32
|
+
[Harness v0.6.1 release](https://github.com/B3Cognition/prosaic-harness/releases/tag/v0.6.1)
|
|
33
|
+
retains its original 0.6.1/0.1.1 package names and receipts.
|
|
34
|
+
|
|
35
|
+
## 1. Install and supply an existing database
|
|
36
|
+
|
|
37
|
+
Python 3.11+, PostgreSQL 16 or 18 on a writable primary, and libpq 17+ are
|
|
38
|
+
required. `psycopg[binary]` supplies libpq; older libpq is rejected.
|
|
39
|
+
From the exact candidate Harness checkout, use a new environment and a curated
|
|
40
|
+
wheelhouse containing only the manifest-selected b3 candidate wheels:
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
python3 -m venv .venv-postgres
|
|
44
|
+
.venv-postgres/bin/python -m pip install --find-links /absolute/path/to/curated-wheelhouse . ./adapters/postgres
|
|
45
|
+
export PATH="$PWD/.venv-postgres/bin:$PATH"
|
|
46
|
+
prosaic --version
|
|
47
|
+
prosaic-harness-postgres --help
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
ALWAYS migrate using a fresh environment or image; NEVER install legacy and b3
|
|
51
|
+
distributions together because they own the same import paths. See
|
|
52
|
+
[package migration](../../docs/package-migration.md). The Runtime 0.8 candidate
|
|
53
|
+
must be available before this installation can resolve.
|
|
54
|
+
|
|
55
|
+
Harness does **not** provision PostgreSQL, create databases/users, start a
|
|
56
|
+
service, or fall back to files. Your operator supplies two DSNs through a secret
|
|
57
|
+
manager: `HARNESS_MIGRATION_DSN` (schema owner with database CREATE permission)
|
|
58
|
+
and `HARNESS_RUNTIME_DSN` (restricted runtime role). Never put DSNs in Markdown,
|
|
59
|
+
YAML, argv, logs or Git. For a local terminal:
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
export HARNESS_MIGRATION_DSN="$(python -c 'import getpass; print(getpass.getpass("Migration DSN: "))')"
|
|
63
|
+
export HARNESS_RUNTIME_DSN="$(python -c 'import getpass; print(getpass.getpass("Runtime DSN: "))')"
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Preserve operator TLS/authentication settings, e.g. `sslmode=verify-full` and
|
|
67
|
+
certificate roots. The adapter adds `target_session_attrs=read-write` for primary
|
|
68
|
+
routing; it never weakens TLS.
|
|
69
|
+
|
|
70
|
+
## 2. Initialize once, then grant runtime access
|
|
71
|
+
|
|
72
|
+
```sh
|
|
73
|
+
prosaic-harness-postgres init --dsn-env HARNESS_MIGRATION_DSN
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Initialization is explicit, transactional, repeatable and concurrency-safe.
|
|
77
|
+
It creates schema/version 1, not your database. It refuses unknown versions,
|
|
78
|
+
foreign-owned, partial or damaged schemas; it does not repair or downgrade them.
|
|
79
|
+
|
|
80
|
+
As schema owner, apply these grants, replacing `harness_runtime` with your
|
|
81
|
+
existing runtime role (role/password creation belongs to your operator):
|
|
82
|
+
|
|
83
|
+
```sql
|
|
84
|
+
GRANT USAGE ON SCHEMA prosaic_harness TO harness_runtime;
|
|
85
|
+
GRANT SELECT ON prosaic_harness.schema_version, prosaic_harness.leases,
|
|
86
|
+
prosaic_harness.runs, prosaic_harness.receipts TO harness_runtime;
|
|
87
|
+
GRANT INSERT, UPDATE ON prosaic_harness.leases, prosaic_harness.runs TO harness_runtime;
|
|
88
|
+
GRANT INSERT ON prosaic_harness.receipts TO harness_runtime;
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Do **not** grant runtime schema CREATE, schema-version UPDATE, receipt UPDATE,
|
|
92
|
+
or table DELETE. Check using the actual application's credentials:
|
|
93
|
+
|
|
94
|
+
```sh
|
|
95
|
+
prosaic-harness-postgres doctor --dsn-env HARNESS_RUNTIME_DSN
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Default doctor reads only catalogs/settings/privileges: no rows, model calls or
|
|
99
|
+
migrations. For an explicit write-and-cleanup test, use migration or dedicated
|
|
100
|
+
diagnostic credentials with DELETE on the three data tables:
|
|
101
|
+
|
|
102
|
+
```sh
|
|
103
|
+
prosaic-harness-postgres doctor --dsn-env HARNESS_MIGRATION_DSN --check-write
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
This exercises guarded create/CAS/receipt/read/release operations in a fresh
|
|
107
|
+
`prosaic-diagnostic-<uuid>` namespace. Reserve this prefix; applications must not
|
|
108
|
+
use it. Cleanup deletes only its exact receipt/run/lease identities, in that
|
|
109
|
+
order, after release. It never deletes production lease generations. Cleanup,
|
|
110
|
+
interruption and commit-ack failures fail the command. Its error includes the
|
|
111
|
+
diagnostic namespace for reconciliation: inspect exact rows before manual
|
|
112
|
+
cleanup/retry, never blindly delete by prefix.
|
|
113
|
+
|
|
114
|
+
## 3. Embed the single Harness engine
|
|
115
|
+
|
|
116
|
+
```python
|
|
117
|
+
from prosaic_harness import Harness, Workflow
|
|
118
|
+
from prosaic_harness_postgres import PostgresRunStore
|
|
119
|
+
|
|
120
|
+
workflow = Workflow.load('/srv/workflows/approval/pause.yml')
|
|
121
|
+
# Construct after fork; keep one long-lived store per bounded trusted namespace.
|
|
122
|
+
with PostgresRunStore.from_env('HARNESS_RUNTIME_DSN', namespace='my-app') as store:
|
|
123
|
+
store.check_ready() # startup gate; no implicit init
|
|
124
|
+
h = Harness(workflow, store=store, run_id='0123456789abcdef0123456789abcdef')
|
|
125
|
+
h.run({'task': 'example'}) # use a NEW UUID for each new run
|
|
126
|
+
snapshot = h.status() # read-only .state and opaque .revision
|
|
127
|
+
h.resume(choice='approve', expected_revision=snapshot.revision)
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Worker B reconstructs the same Workflow/namespace/run ID and calls status/resume,
|
|
131
|
+
not run. Human choices, structured responses and explicit interrupted-call retry
|
|
132
|
+
require the current revision. A stale approval cannot approve a later same-named
|
|
133
|
+
pause. Never silently fetch a fresh revision to bypass rejection: show current
|
|
134
|
+
state and require a new decision. See the [runnable example](../../examples/postgres/README.md).
|
|
135
|
+
|
|
136
|
+
`load_run` returns an independent RunSnapshot; create/save return revisions.
|
|
137
|
+
Receipt absence is None, corruption is an error. Writes require this store/run's
|
|
138
|
+
active lease. Tokens are run/namespace scoped, not lease owner/fencing tokens.
|
|
139
|
+
Receipts are immutable; identical repeats need live ownership. Sealed finite
|
|
140
|
+
JSON is limited to 8 MiB per document including UTF-8 bytes. Public APIs return
|
|
141
|
+
no driver objects. The legacy `Harness(workflow, run_dir)` and filesystem CLI
|
|
142
|
+
remain supported; the adapter adds no new workflow interpreter.
|
|
143
|
+
|
|
144
|
+
## Deployment and safety
|
|
145
|
+
|
|
146
|
+
- All reads/writes use the authoritative writable primary, never replicas/caches.
|
|
147
|
+
Tables must be permanent/logged; fsync/full_page_writes must be on, effective
|
|
148
|
+
synchronous_commit on or remote_apply. Existing remote_apply is preserved.
|
|
149
|
+
Primary/WAL guards run on every operation/reconnection.
|
|
150
|
+
- Mount immutable workflow, prose, schema, evidence and reviewed tool assets at
|
|
151
|
+
identical absolute paths across workers. Keep executables, validator versions
|
|
152
|
+
and Runtime configuration identical. Drift fails before dispatch. PostgreSQL
|
|
153
|
+
moves run state, not assets or private tool scratch.
|
|
154
|
+
- Synchronize worker/database clocks and avoid abrupt clock steps. Expiry uses
|
|
155
|
+
fresh clock_timestamp() after the lease-row lock; local ownership uses a
|
|
156
|
+
conservative monotonic deadline starting before the request, not at reply.
|
|
157
|
+
- Default lease/renewal 60s/15s. Duration >=15s; renewal >=1s and <=duration/3;
|
|
158
|
+
renewal + operation budget + 1s must be less than duration. Default total I/O
|
|
159
|
+
budget 10s, pool/connect 5s, row lock 1s, statement 5s. Deadlines cover pool,
|
|
160
|
+
network and COMMIT waits. Stalled connections are quarantined; unresolved
|
|
161
|
+
operations retain capacity and prevent unsafe close.
|
|
162
|
+
- Default lazy pool bounds per store/process: 8 ordinary + 4 renewal connections,
|
|
163
|
+
maximum 4 active leases. Renewal has reserved capacity. Multiply capacity
|
|
164
|
+
across replicas/namespaces; do not create a pool per HTTP request. Applications
|
|
165
|
+
still own scheduling, model concurrency and quotas.
|
|
166
|
+
- Construct after fork; do not share across processes. Drain executions before
|
|
167
|
+
close/context exit. Threads can share a store; use a separate Harness per run.
|
|
168
|
+
- Namespaces are trusted isolation keys, **not authorization or DB row-level
|
|
169
|
+
security**. A shared DB role can directly access other namespaces. Derive
|
|
170
|
+
namespace/run ownership from authenticated server state, never browser/model
|
|
171
|
+
input. Applications own tenant authorization and admission policies.
|
|
172
|
+
- Raw status state contains private inputs, evidence, responses and history.
|
|
173
|
+
Products must expose a filtered authorized view, not the operator demo JSON.
|
|
174
|
+
- Prose frontmatter requests tools; Runtime/workflow permissions authorize them.
|
|
175
|
+
Neither grants database permissions. No HTTP service, queue, PostgreSQL server
|
|
176
|
+
or historical file importer is included.
|
|
177
|
+
- Fencing stops stale DB mutations, not external tool/model effects. Use
|
|
178
|
+
application-owned idempotency keys. Pending calls without receipts require
|
|
179
|
+
explicit fresh retry consent, not automatic redispatch. Unknown token usage
|
|
180
|
+
may still prevent a token-budgeted retry; abandoned calls retain their budget.
|
|
181
|
+
- Acknowledged WAL durability is not zero-loss asynchronous failover. A lagging
|
|
182
|
+
promoted primary or older backup can lose receipts/generations. Require
|
|
183
|
+
operator replication guarantees where needed; do not promise exactly-once
|
|
184
|
+
external effects from this adapter.
|
|
185
|
+
|
|
186
|
+
## Errors and recovery
|
|
187
|
+
|
|
188
|
+
| Code | Action |
|
|
189
|
+
| --- | --- |
|
|
190
|
+
| store_uninitialized | Operator runs init, applies grants, then doctor. |
|
|
191
|
+
| store_incompatible | Check role/version/primary/WAL settings and intact logged schema; no automatic repair. |
|
|
192
|
+
| store_unavailable | Restore primary connectivity and reload status. outcome_unknown means a commit may have succeeded; never blindly repeat writes/effects. |
|
|
193
|
+
| run_busy | Another worker owns execution; back off without launching another call. |
|
|
194
|
+
| lease_lost | Stop dispatch/admission/writes, discard late output; acquire fresh execution and reconcile durable state. |
|
|
195
|
+
| revision_conflict | Show the user's current pause and require a new explicit decision. |
|
|
196
|
+
| store_busy | Drain active/queued/renewal work; construct a new store after fork. |
|
|
197
|
+
| receipt_conflict / store_corrupt | Stop; investigate evidence without overwriting it. |
|
|
198
|
+
|
|
199
|
+
## Development verification
|
|
200
|
+
|
|
201
|
+
Core tests need no database/driver. Adapter tests use disposable databases and
|
|
202
|
+
synthetic inference, never TokenProxy. Required mode fails rather than skips
|
|
203
|
+
missing infrastructure. Select Podman/Docker explicitly for crash/standby gates:
|
|
204
|
+
|
|
205
|
+
```sh
|
|
206
|
+
python -m pip install -e '.[test]' -e './adapters/postgres[test]'
|
|
207
|
+
python adapters/postgres/tests/support/local_cluster.py start --engine podman --version 16
|
|
208
|
+
# Retain the printed ownership.json path as FIXTURE_MANIFEST.
|
|
209
|
+
python adapters/postgres/tests/support/local_cluster.py test --manifest "$FIXTURE_MANIFEST"
|
|
210
|
+
python adapters/postgres/tests/support/local_cluster.py stop --manifest "$FIXTURE_MANIFEST"
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Repeat with version 18. Stop validates exact IDs/names/ownership labels before
|
|
214
|
+
removing only owned containers/volumes/network. Generated fixture networks and
|
|
215
|
+
loopback ports use synthetic trust authentication, never production defaults.
|
|
216
|
+
# Lease registration candidate
|
|
217
|
+
|
|
218
|
+
The adapter transfers acquisition capacity into registered
|
|
219
|
+
session capacity atomically under the existing store mutex. A registering lease
|
|
220
|
+
can no longer be counted twice while maintenance is scheduled. The database
|
|
221
|
+
storage/fencing contract is unchanged. A unit scheduling-boundary regression and
|
|
222
|
+
an owned PostgreSQL 16/18 race regression cover the transition.
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# PostgreSQL persistence for Prosaic Harness
|
|
2
|
+
|
|
3
|
+
Run on worker A, inspect/resume on worker B, without a shared writable run
|
|
4
|
+
directory. Core remains database-free; install this separate adapter only when
|
|
5
|
+
you need shared durable state. The API is synchronous; a private I/O thread
|
|
6
|
+
bounds network waits. Model execution holds no database connection/transaction.
|
|
7
|
+
The current candidate is `b3-prosaic-harness-postgres` **0.2.0**, selecting
|
|
8
|
+
`b3-prosaic-harness>=0.7,<0.8`. The adapter is maintained in this repository but
|
|
9
|
+
installed and versioned separately, keeping PostgreSQL drivers optional for
|
|
10
|
+
Harness users. Imports and CLI names remain unchanged. Final qualification and
|
|
11
|
+
publication of the b3 release train are pending. The historical
|
|
12
|
+
[Harness v0.6.1 release](https://github.com/B3Cognition/prosaic-harness/releases/tag/v0.6.1)
|
|
13
|
+
retains its original 0.6.1/0.1.1 package names and receipts.
|
|
14
|
+
|
|
15
|
+
## 1. Install and supply an existing database
|
|
16
|
+
|
|
17
|
+
Python 3.11+, PostgreSQL 16 or 18 on a writable primary, and libpq 17+ are
|
|
18
|
+
required. `psycopg[binary]` supplies libpq; older libpq is rejected.
|
|
19
|
+
From the exact candidate Harness checkout, use a new environment and a curated
|
|
20
|
+
wheelhouse containing only the manifest-selected b3 candidate wheels:
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
python3 -m venv .venv-postgres
|
|
24
|
+
.venv-postgres/bin/python -m pip install --find-links /absolute/path/to/curated-wheelhouse . ./adapters/postgres
|
|
25
|
+
export PATH="$PWD/.venv-postgres/bin:$PATH"
|
|
26
|
+
prosaic --version
|
|
27
|
+
prosaic-harness-postgres --help
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
ALWAYS migrate using a fresh environment or image; NEVER install legacy and b3
|
|
31
|
+
distributions together because they own the same import paths. See
|
|
32
|
+
[package migration](../../docs/package-migration.md). The Runtime 0.8 candidate
|
|
33
|
+
must be available before this installation can resolve.
|
|
34
|
+
|
|
35
|
+
Harness does **not** provision PostgreSQL, create databases/users, start a
|
|
36
|
+
service, or fall back to files. Your operator supplies two DSNs through a secret
|
|
37
|
+
manager: `HARNESS_MIGRATION_DSN` (schema owner with database CREATE permission)
|
|
38
|
+
and `HARNESS_RUNTIME_DSN` (restricted runtime role). Never put DSNs in Markdown,
|
|
39
|
+
YAML, argv, logs or Git. For a local terminal:
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
export HARNESS_MIGRATION_DSN="$(python -c 'import getpass; print(getpass.getpass("Migration DSN: "))')"
|
|
43
|
+
export HARNESS_RUNTIME_DSN="$(python -c 'import getpass; print(getpass.getpass("Runtime DSN: "))')"
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Preserve operator TLS/authentication settings, e.g. `sslmode=verify-full` and
|
|
47
|
+
certificate roots. The adapter adds `target_session_attrs=read-write` for primary
|
|
48
|
+
routing; it never weakens TLS.
|
|
49
|
+
|
|
50
|
+
## 2. Initialize once, then grant runtime access
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
prosaic-harness-postgres init --dsn-env HARNESS_MIGRATION_DSN
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Initialization is explicit, transactional, repeatable and concurrency-safe.
|
|
57
|
+
It creates schema/version 1, not your database. It refuses unknown versions,
|
|
58
|
+
foreign-owned, partial or damaged schemas; it does not repair or downgrade them.
|
|
59
|
+
|
|
60
|
+
As schema owner, apply these grants, replacing `harness_runtime` with your
|
|
61
|
+
existing runtime role (role/password creation belongs to your operator):
|
|
62
|
+
|
|
63
|
+
```sql
|
|
64
|
+
GRANT USAGE ON SCHEMA prosaic_harness TO harness_runtime;
|
|
65
|
+
GRANT SELECT ON prosaic_harness.schema_version, prosaic_harness.leases,
|
|
66
|
+
prosaic_harness.runs, prosaic_harness.receipts TO harness_runtime;
|
|
67
|
+
GRANT INSERT, UPDATE ON prosaic_harness.leases, prosaic_harness.runs TO harness_runtime;
|
|
68
|
+
GRANT INSERT ON prosaic_harness.receipts TO harness_runtime;
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Do **not** grant runtime schema CREATE, schema-version UPDATE, receipt UPDATE,
|
|
72
|
+
or table DELETE. Check using the actual application's credentials:
|
|
73
|
+
|
|
74
|
+
```sh
|
|
75
|
+
prosaic-harness-postgres doctor --dsn-env HARNESS_RUNTIME_DSN
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Default doctor reads only catalogs/settings/privileges: no rows, model calls or
|
|
79
|
+
migrations. For an explicit write-and-cleanup test, use migration or dedicated
|
|
80
|
+
diagnostic credentials with DELETE on the three data tables:
|
|
81
|
+
|
|
82
|
+
```sh
|
|
83
|
+
prosaic-harness-postgres doctor --dsn-env HARNESS_MIGRATION_DSN --check-write
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
This exercises guarded create/CAS/receipt/read/release operations in a fresh
|
|
87
|
+
`prosaic-diagnostic-<uuid>` namespace. Reserve this prefix; applications must not
|
|
88
|
+
use it. Cleanup deletes only its exact receipt/run/lease identities, in that
|
|
89
|
+
order, after release. It never deletes production lease generations. Cleanup,
|
|
90
|
+
interruption and commit-ack failures fail the command. Its error includes the
|
|
91
|
+
diagnostic namespace for reconciliation: inspect exact rows before manual
|
|
92
|
+
cleanup/retry, never blindly delete by prefix.
|
|
93
|
+
|
|
94
|
+
## 3. Embed the single Harness engine
|
|
95
|
+
|
|
96
|
+
```python
|
|
97
|
+
from prosaic_harness import Harness, Workflow
|
|
98
|
+
from prosaic_harness_postgres import PostgresRunStore
|
|
99
|
+
|
|
100
|
+
workflow = Workflow.load('/srv/workflows/approval/pause.yml')
|
|
101
|
+
# Construct after fork; keep one long-lived store per bounded trusted namespace.
|
|
102
|
+
with PostgresRunStore.from_env('HARNESS_RUNTIME_DSN', namespace='my-app') as store:
|
|
103
|
+
store.check_ready() # startup gate; no implicit init
|
|
104
|
+
h = Harness(workflow, store=store, run_id='0123456789abcdef0123456789abcdef')
|
|
105
|
+
h.run({'task': 'example'}) # use a NEW UUID for each new run
|
|
106
|
+
snapshot = h.status() # read-only .state and opaque .revision
|
|
107
|
+
h.resume(choice='approve', expected_revision=snapshot.revision)
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Worker B reconstructs the same Workflow/namespace/run ID and calls status/resume,
|
|
111
|
+
not run. Human choices, structured responses and explicit interrupted-call retry
|
|
112
|
+
require the current revision. A stale approval cannot approve a later same-named
|
|
113
|
+
pause. Never silently fetch a fresh revision to bypass rejection: show current
|
|
114
|
+
state and require a new decision. See the [runnable example](../../examples/postgres/README.md).
|
|
115
|
+
|
|
116
|
+
`load_run` returns an independent RunSnapshot; create/save return revisions.
|
|
117
|
+
Receipt absence is None, corruption is an error. Writes require this store/run's
|
|
118
|
+
active lease. Tokens are run/namespace scoped, not lease owner/fencing tokens.
|
|
119
|
+
Receipts are immutable; identical repeats need live ownership. Sealed finite
|
|
120
|
+
JSON is limited to 8 MiB per document including UTF-8 bytes. Public APIs return
|
|
121
|
+
no driver objects. The legacy `Harness(workflow, run_dir)` and filesystem CLI
|
|
122
|
+
remain supported; the adapter adds no new workflow interpreter.
|
|
123
|
+
|
|
124
|
+
## Deployment and safety
|
|
125
|
+
|
|
126
|
+
- All reads/writes use the authoritative writable primary, never replicas/caches.
|
|
127
|
+
Tables must be permanent/logged; fsync/full_page_writes must be on, effective
|
|
128
|
+
synchronous_commit on or remote_apply. Existing remote_apply is preserved.
|
|
129
|
+
Primary/WAL guards run on every operation/reconnection.
|
|
130
|
+
- Mount immutable workflow, prose, schema, evidence and reviewed tool assets at
|
|
131
|
+
identical absolute paths across workers. Keep executables, validator versions
|
|
132
|
+
and Runtime configuration identical. Drift fails before dispatch. PostgreSQL
|
|
133
|
+
moves run state, not assets or private tool scratch.
|
|
134
|
+
- Synchronize worker/database clocks and avoid abrupt clock steps. Expiry uses
|
|
135
|
+
fresh clock_timestamp() after the lease-row lock; local ownership uses a
|
|
136
|
+
conservative monotonic deadline starting before the request, not at reply.
|
|
137
|
+
- Default lease/renewal 60s/15s. Duration >=15s; renewal >=1s and <=duration/3;
|
|
138
|
+
renewal + operation budget + 1s must be less than duration. Default total I/O
|
|
139
|
+
budget 10s, pool/connect 5s, row lock 1s, statement 5s. Deadlines cover pool,
|
|
140
|
+
network and COMMIT waits. Stalled connections are quarantined; unresolved
|
|
141
|
+
operations retain capacity and prevent unsafe close.
|
|
142
|
+
- Default lazy pool bounds per store/process: 8 ordinary + 4 renewal connections,
|
|
143
|
+
maximum 4 active leases. Renewal has reserved capacity. Multiply capacity
|
|
144
|
+
across replicas/namespaces; do not create a pool per HTTP request. Applications
|
|
145
|
+
still own scheduling, model concurrency and quotas.
|
|
146
|
+
- Construct after fork; do not share across processes. Drain executions before
|
|
147
|
+
close/context exit. Threads can share a store; use a separate Harness per run.
|
|
148
|
+
- Namespaces are trusted isolation keys, **not authorization or DB row-level
|
|
149
|
+
security**. A shared DB role can directly access other namespaces. Derive
|
|
150
|
+
namespace/run ownership from authenticated server state, never browser/model
|
|
151
|
+
input. Applications own tenant authorization and admission policies.
|
|
152
|
+
- Raw status state contains private inputs, evidence, responses and history.
|
|
153
|
+
Products must expose a filtered authorized view, not the operator demo JSON.
|
|
154
|
+
- Prose frontmatter requests tools; Runtime/workflow permissions authorize them.
|
|
155
|
+
Neither grants database permissions. No HTTP service, queue, PostgreSQL server
|
|
156
|
+
or historical file importer is included.
|
|
157
|
+
- Fencing stops stale DB mutations, not external tool/model effects. Use
|
|
158
|
+
application-owned idempotency keys. Pending calls without receipts require
|
|
159
|
+
explicit fresh retry consent, not automatic redispatch. Unknown token usage
|
|
160
|
+
may still prevent a token-budgeted retry; abandoned calls retain their budget.
|
|
161
|
+
- Acknowledged WAL durability is not zero-loss asynchronous failover. A lagging
|
|
162
|
+
promoted primary or older backup can lose receipts/generations. Require
|
|
163
|
+
operator replication guarantees where needed; do not promise exactly-once
|
|
164
|
+
external effects from this adapter.
|
|
165
|
+
|
|
166
|
+
## Errors and recovery
|
|
167
|
+
|
|
168
|
+
| Code | Action |
|
|
169
|
+
| --- | --- |
|
|
170
|
+
| store_uninitialized | Operator runs init, applies grants, then doctor. |
|
|
171
|
+
| store_incompatible | Check role/version/primary/WAL settings and intact logged schema; no automatic repair. |
|
|
172
|
+
| store_unavailable | Restore primary connectivity and reload status. outcome_unknown means a commit may have succeeded; never blindly repeat writes/effects. |
|
|
173
|
+
| run_busy | Another worker owns execution; back off without launching another call. |
|
|
174
|
+
| lease_lost | Stop dispatch/admission/writes, discard late output; acquire fresh execution and reconcile durable state. |
|
|
175
|
+
| revision_conflict | Show the user's current pause and require a new explicit decision. |
|
|
176
|
+
| store_busy | Drain active/queued/renewal work; construct a new store after fork. |
|
|
177
|
+
| receipt_conflict / store_corrupt | Stop; investigate evidence without overwriting it. |
|
|
178
|
+
|
|
179
|
+
## Development verification
|
|
180
|
+
|
|
181
|
+
Core tests need no database/driver. Adapter tests use disposable databases and
|
|
182
|
+
synthetic inference, never TokenProxy. Required mode fails rather than skips
|
|
183
|
+
missing infrastructure. Select Podman/Docker explicitly for crash/standby gates:
|
|
184
|
+
|
|
185
|
+
```sh
|
|
186
|
+
python -m pip install -e '.[test]' -e './adapters/postgres[test]'
|
|
187
|
+
python adapters/postgres/tests/support/local_cluster.py start --engine podman --version 16
|
|
188
|
+
# Retain the printed ownership.json path as FIXTURE_MANIFEST.
|
|
189
|
+
python adapters/postgres/tests/support/local_cluster.py test --manifest "$FIXTURE_MANIFEST"
|
|
190
|
+
python adapters/postgres/tests/support/local_cluster.py stop --manifest "$FIXTURE_MANIFEST"
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
Repeat with version 18. Stop validates exact IDs/names/ownership labels before
|
|
194
|
+
removing only owned containers/volumes/network. Generated fixture networks and
|
|
195
|
+
loopback ports use synthetic trust authentication, never production defaults.
|
|
196
|
+
# Lease registration candidate
|
|
197
|
+
|
|
198
|
+
The adapter transfers acquisition capacity into registered
|
|
199
|
+
session capacity atomically under the existing store mutex. A registering lease
|
|
200
|
+
can no longer be counted twice while maintenance is scheduled. The database
|
|
201
|
+
storage/fencing contract is unchanged. A unit scheduling-boundary regression and
|
|
202
|
+
an owned PostgreSQL 16/18 race regression cover the transition.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "b3-prosaic-harness-postgres"
|
|
7
|
+
version = "0.2.1"
|
|
8
|
+
description = "Explicit PostgreSQL run storage for Prosaic Harness"
|
|
9
|
+
requires-python = ">=3.11"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
license-files = ["LICENSE", "NOTICE"]
|
|
13
|
+
dependencies = ["b3-prosaic-harness>=0.7,<0.8", "psycopg[binary]>=3.2.3,<4", "psycopg-pool>=3.2,<4"]
|
|
14
|
+
|
|
15
|
+
[project.optional-dependencies]
|
|
16
|
+
test = ["pytest>=8", "build>=1", "setuptools>=77", "wheel", "packaging"]
|
|
17
|
+
|
|
18
|
+
[project.scripts]
|
|
19
|
+
prosaic-harness-postgres = "prosaic_harness_postgres.cli:main"
|
|
20
|
+
|
|
21
|
+
[tool.setuptools.packages.find]
|
|
22
|
+
where = ["src"]
|