ratifypoint 3.0.4__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.
- ratifypoint-3.0.4/LICENSE +202 -0
- ratifypoint-3.0.4/PKG-INFO +136 -0
- ratifypoint-3.0.4/README.md +112 -0
- ratifypoint-3.0.4/pyproject.toml +68 -0
- ratifypoint-3.0.4/setup.cfg +4 -0
- ratifypoint-3.0.4/src/ratifypoint/__init__.py +3 -0
- ratifypoint-3.0.4/src/ratifypoint/adapter/__init__.py +5 -0
- ratifypoint-3.0.4/src/ratifypoint/adapter/server.py +413 -0
- ratifypoint-3.0.4/src/ratifypoint/adapter/texts.py +108 -0
- ratifypoint-3.0.4/src/ratifypoint/cli.py +75 -0
- ratifypoint-3.0.4/src/ratifypoint/commands/__init__.py +19 -0
- ratifypoint-3.0.4/src/ratifypoint/commands/checks.py +58 -0
- ratifypoint-3.0.4/src/ratifypoint/commands/clean.py +368 -0
- ratifypoint-3.0.4/src/ratifypoint/commands/edit.py +370 -0
- ratifypoint-3.0.4/src/ratifypoint/commands/init.py +52 -0
- ratifypoint-3.0.4/src/ratifypoint/commands/save.py +98 -0
- ratifypoint-3.0.4/src/ratifypoint/commands/session.py +251 -0
- ratifypoint-3.0.4/src/ratifypoint/commands/versions.py +100 -0
- ratifypoint-3.0.4/src/ratifypoint/delivery/__init__.py +27 -0
- ratifypoint-3.0.4/src/ratifypoint/delivery/context.py +322 -0
- ratifypoint-3.0.4/src/ratifypoint/delivery/receipt.py +70 -0
- ratifypoint-3.0.4/src/ratifypoint/hooks/__init__.py +5 -0
- ratifypoint-3.0.4/src/ratifypoint/hooks/hooks.py +57 -0
- ratifypoint-3.0.4/src/ratifypoint/integrations/__init__.py +21 -0
- ratifypoint-3.0.4/src/ratifypoint/integrations/install.py +144 -0
- ratifypoint-3.0.4/src/ratifypoint/integrations/plugin.py +81 -0
- ratifypoint-3.0.4/src/ratifypoint/knowledge/__init__.py +19 -0
- ratifypoint-3.0.4/src/ratifypoint/knowledge/conflicts.py +106 -0
- ratifypoint-3.0.4/src/ratifypoint/knowledge/duplicates.py +128 -0
- ratifypoint-3.0.4/src/ratifypoint/knowledge/integrity.py +75 -0
- ratifypoint-3.0.4/src/ratifypoint/knowledge/lifecycle.py +90 -0
- ratifypoint-3.0.4/src/ratifypoint/knowledge/related.py +54 -0
- ratifypoint-3.0.4/src/ratifypoint/model/__init__.py +7 -0
- ratifypoint-3.0.4/src/ratifypoint/model/form.py +508 -0
- ratifypoint-3.0.4/src/ratifypoint/model/ids.py +27 -0
- ratifypoint-3.0.4/src/ratifypoint/model/json.py +51 -0
- ratifypoint-3.0.4/src/ratifypoint/model/profile.py +26 -0
- ratifypoint-3.0.4/src/ratifypoint/model/scope.py +51 -0
- ratifypoint-3.0.4/src/ratifypoint/presentation/__init__.py +7 -0
- ratifypoint-3.0.4/src/ratifypoint/presentation/form.py +238 -0
- ratifypoint-3.0.4/src/ratifypoint/presentation/record.py +85 -0
- ratifypoint-3.0.4/src/ratifypoint/presentation/search.py +106 -0
- ratifypoint-3.0.4/src/ratifypoint/presentation/window.py +67 -0
- ratifypoint-3.0.4/src/ratifypoint/report.py +333 -0
- ratifypoint-3.0.4/src/ratifypoint/show.py +29 -0
- ratifypoint-3.0.4/src/ratifypoint/status.py +69 -0
- ratifypoint-3.0.4/src/ratifypoint/storage/__init__.py +15 -0
- ratifypoint-3.0.4/src/ratifypoint/storage/files.py +228 -0
- ratifypoint-3.0.4/src/ratifypoint/storage/project.py +149 -0
- ratifypoint-3.0.4/src/ratifypoint.egg-info/PKG-INFO +136 -0
- ratifypoint-3.0.4/src/ratifypoint.egg-info/SOURCES.txt +53 -0
- ratifypoint-3.0.4/src/ratifypoint.egg-info/dependency_links.txt +1 -0
- ratifypoint-3.0.4/src/ratifypoint.egg-info/entry_points.txt +2 -0
- ratifypoint-3.0.4/src/ratifypoint.egg-info/requires.txt +3 -0
- ratifypoint-3.0.4/src/ratifypoint.egg-info/top_level.txt +1 -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,136 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ratifypoint
|
|
3
|
+
Version: 3.0.4
|
|
4
|
+
Summary: One knowledge base for a project and every AI coding agent that works on it.
|
|
5
|
+
Author: RatifyPoint
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Repository, https://github.com/semenovsd/ratifypoint
|
|
8
|
+
Project-URL: Documentation, https://github.com/semenovsd/ratifypoint/blob/main/docs/REFERENCE.md
|
|
9
|
+
Project-URL: Changelog, https://github.com/semenovsd/ratifypoint/blob/main/CHANGELOG.md
|
|
10
|
+
Keywords: ai-agents,codex,claude-code,context,knowledge,mcp,memory,rules
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Requires-Python: >=3.11
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
License-File: LICENSE
|
|
20
|
+
Requires-Dist: filelock<4,>=3.20
|
|
21
|
+
Requires-Dist: mcp<3,>=2.2
|
|
22
|
+
Requires-Dist: pathspec<2,>=1.1
|
|
23
|
+
Dynamic: license-file
|
|
24
|
+
|
|
25
|
+
# RatifyPoint
|
|
26
|
+
|
|
27
|
+
RatifyPoint gives Claude Code and Codex a shared memory for a Git project. Tell an agent a project rule or decision, review the record it proposes, and confirm it. In a fresh session, either agent can retrieve that decision. Your team can review and share the records through Git.
|
|
28
|
+
|
|
29
|
+
The installation and session workflow has been exercised on Linux with both native clients. [Downloads and checksums](https://github.com/semenovsd/ratifypoint/releases/latest)
|
|
30
|
+
|
|
31
|
+
## Install
|
|
32
|
+
|
|
33
|
+
You need Git, Python 3.11 or newer, and a working installation of at least one supported client. You can use the same RatifyPoint installation for both clients. [Install uv](https://docs.astral.sh/uv/getting-started/installation/) · [Get Codex CLI](https://developers.openai.com/codex/cli/) · [Get Claude Code](https://code.claude.com/docs/en/quickstart)
|
|
34
|
+
|
|
35
|
+
Install the CLI in a persistent environment. The Codex and Claude Code plugins use the absolute path to this installation.
|
|
36
|
+
|
|
37
|
+
With uv, the tool gets its own environment. If your shell cannot find `ratifypoint`, run `uv tool update-shell` and open a new terminal.
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
uv tool install ratifypoint
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
With pip, activate a persistent virtual environment and run:
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
python -m pip install ratifypoint
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
You can also download the wheel and source archive from GitHub Releases. Each release includes a `SHA256SUMS` file. Download all three files and run `sha256sum -c SHA256SUMS` on Linux to verify them. [PyPI package](https://pypi.org/project/ratifypoint/) · [GitHub downloads](https://github.com/semenovsd/ratifypoint/releases/latest)
|
|
50
|
+
|
|
51
|
+
### Connect Codex CLI
|
|
52
|
+
|
|
53
|
+
```sh
|
|
54
|
+
ratifypoint install codex
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Restart Codex. Open `/hooks`, review the RatifyPoint hooks, and trust them to receive project context at session start. For setup and saving, your session must allow MCP confirmation dialogs. If Codex is configured with `approval_policy = "never"`, see [Troubleshooting](#troubleshooting).
|
|
58
|
+
|
|
59
|
+
### Connect Claude Code
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
ratifypoint install claude-code
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Restart Claude Code. The plugin registers the MCP server and the hooks that deliver project context.
|
|
66
|
+
|
|
67
|
+
## Save your first rule and use it in another session
|
|
68
|
+
|
|
69
|
+
1. Open a terminal **inside the Git repository where you want to use RatifyPoint**. Records use the author returned by `git config user.name` and `git config user.email`. If either is empty, set it in this repository with `git config user.name "Your Name"` and `git config user.email "you@example.com"`, substituting your details.
|
|
70
|
+
2. Start `codex` or `claude` there. Ask **“Set up RatifyPoint for this project.”** In the two dialogs, choose where records should live and which language to write them in. **Local** keeps a new project's records on this machine. **Shared** puts them under version control when you commit them.
|
|
71
|
+
3. Try a rule that belongs in your project. For example, ask **“Save a project-wide rule in RatifyPoint: store monetary amounts as integer cents.”** Read the proposed wording and scope. Approve it to save, request a correction, or skip it. The agent reports the saved record ID after approval.
|
|
72
|
+
4. Close the session. Start a fresh session in the same project, using either connected client. Ask **“Which unit does this project use for monetary amounts? Show me the RatifyPoint record.”** With the example above, the answer should say *integer cents* and point to your saved rule. You can inspect the saved context yourself with `ratifypoint show`.
|
|
73
|
+
|
|
74
|
+
## Use it with your team
|
|
75
|
+
|
|
76
|
+
Choose **Shared** when setting up the project. Include `.ratifypoint/settings.json` and `.ratifypoint/records/` in your normal Git commits and code reviews. Teammates install the plugin on their own machines, pull the branch, and start their client in the project. A clone that already contains the settings and records is ready for use.
|
|
77
|
+
|
|
78
|
+
In **Local** mode, records live under `.ratifypoint/` in the main worktree and are excluded from Git through `.git/info/exclude`. Switching a previously shared project to Local does not untrack existing commits or files. Keep credentials and tokens out of records.
|
|
79
|
+
|
|
80
|
+
## Everyday use
|
|
81
|
+
|
|
82
|
+
| What you want to do | What to ask your agent |
|
|
83
|
+
| --- | --- |
|
|
84
|
+
| Save a scoped decision | “Record our decision to use integer cents for every monetary amount under `app/payments/`.” |
|
|
85
|
+
| Find knowledge by topic | “What did we decide about rounding payments? Show me the matching records.” |
|
|
86
|
+
| See which rules apply to a file | “Which RatifyPoint records apply to `app/payments/refund.py`?” |
|
|
87
|
+
| Correct a decision | “Update the payments decision to use integer micro-units. Show me the replacement.” |
|
|
88
|
+
| Retire a rule | “The old refund policy no longer applies. Retire its RatifyPoint record.” |
|
|
89
|
+
| Review old or conflicting records | “Run a RatifyPoint cleanup and take me through the records that need a decision.” |
|
|
90
|
+
|
|
91
|
+
Replacements and retirements require confirmation and preserve earlier versions. A project-wide rule uses the scope `./`. A folder or file scope lets an agent retrieve more specific instructions before it changes that path. You can also save facts, risks, open questions, procedures and profiles of project resources.
|
|
92
|
+
|
|
93
|
+
| Terminal command | What it tells you |
|
|
94
|
+
| --- | --- |
|
|
95
|
+
| `ratifypoint status` | Storage mode, record counts, plugin file status and data problems |
|
|
96
|
+
| `ratifypoint show` | Project context and records grouped by scope |
|
|
97
|
+
| `ratifypoint show app/payments/refund.py` | Context for a particular path |
|
|
98
|
+
| `ratifypoint report` | Whether client logs show delivery of current scoped records before file edits during the last seven days |
|
|
99
|
+
|
|
100
|
+
## Update or uninstall
|
|
101
|
+
|
|
102
|
+
To upgrade a PyPI installation, run `uv tool upgrade ratifypoint` or `python -m pip install --upgrade ratifypoint` in the environment you used. If you installed the 3.0.3 wheel by URL with uv, run `uv tool install --force ratifypoint` once to switch to PyPI. Run `ratifypoint install codex` or `ratifypoint install claude-code` for each connected client and start fresh sessions. In Codex, review any changed hooks in `/hooks`.
|
|
103
|
+
|
|
104
|
+
If you already have **1.x or 2.x records**, 3.x requires a record-format migration. Back up the full `.ratifypoint/` directory before upgrading. Every record version, including replaced and retired ones, needs its `see_also` field renamed to `related` where present and `format_version` set to `3`. Preserve all other values, including `knowledge_hash`. After migration, run `ratifypoint status` in the project and review any reported problems.
|
|
105
|
+
|
|
106
|
+
To uninstall, run the removal command for each client you connected, then remove the Python tool. Your project's saved records stay in place.
|
|
107
|
+
|
|
108
|
+
```sh
|
|
109
|
+
ratifypoint uninstall codex
|
|
110
|
+
ratifypoint uninstall claude-code
|
|
111
|
+
uv tool uninstall ratifypoint
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Troubleshooting
|
|
115
|
+
|
|
116
|
+
| Symptom | What to do |
|
|
117
|
+
| --- | --- |
|
|
118
|
+
| The installer cannot find `codex` or `claude` | Install the corresponding CLI and run its plugin installation command from a terminal where that CLI is on `PATH`. |
|
|
119
|
+
| The agent says it needs a Git repository | Start a fresh client from inside the intended Git checkout. |
|
|
120
|
+
| A new session misses a known rule | Run `ratifypoint status` and `ratifypoint show` in that checkout. Confirm the right branch and scope, restart the client and check `/hooks` in Codex. Status checks the generated files. A fresh session shows whether the client actually loaded them. |
|
|
121
|
+
| Setup or saving is declined without a dialog | Check whether the client allows MCP elicitation. In Codex, enable `mcp_elicitations = true` in the active granular approval policy. A session launcher or managed policy may override user settings. Reading saved records works without confirmation dialogs. |
|
|
122
|
+
| A record shows `DO NOT TRUST` | A stored knowledge field was edited by hand. Review its full contents and ask the agent to run a cleanup to confirm or correct it. |
|
|
123
|
+
|
|
124
|
+
For a Codex setup that should allow only MCP dialogs, the following is a complete top-level `approval_policy` example for `~/.codex/config.toml`. If you already have a granular policy, preserve your other choices and enable only its `mcp_elicitations` field as needed. Restart the client after editing its configuration.
|
|
125
|
+
|
|
126
|
+
```toml
|
|
127
|
+
approval_policy = { granular = { sandbox_approval = false, rules = false, mcp_elicitations = true, request_permissions = false, skill_approval = false } }
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
For help, include your operating system, client, release version, command and error message. Review any output for personal or project information before posting. [Report an installation or usage issue](https://github.com/semenovsd/ratifypoint/issues)
|
|
131
|
+
|
|
132
|
+
## Development
|
|
133
|
+
|
|
134
|
+
The [command and MCP reference](https://github.com/semenovsd/ratifypoint/blob/main/docs/REFERENCE.md) describes the public interfaces. The [architecture guide](https://github.com/semenovsd/ratifypoint/blob/main/docs/ARCHITECTURE.md) explains the source layout and how to run the complete functional workflow. See the [changelog](https://github.com/semenovsd/ratifypoint/blob/main/CHANGELOG.md) for changes by version.
|
|
135
|
+
|
|
136
|
+
Copyright 2026 RatifyPoint contributors. [Apache License 2.0](https://github.com/semenovsd/ratifypoint/blob/main/LICENSE)
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# RatifyPoint
|
|
2
|
+
|
|
3
|
+
RatifyPoint gives Claude Code and Codex a shared memory for a Git project. Tell an agent a project rule or decision, review the record it proposes, and confirm it. In a fresh session, either agent can retrieve that decision. Your team can review and share the records through Git.
|
|
4
|
+
|
|
5
|
+
The installation and session workflow has been exercised on Linux with both native clients. [Downloads and checksums](https://github.com/semenovsd/ratifypoint/releases/latest)
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
You need Git, Python 3.11 or newer, and a working installation of at least one supported client. You can use the same RatifyPoint installation for both clients. [Install uv](https://docs.astral.sh/uv/getting-started/installation/) · [Get Codex CLI](https://developers.openai.com/codex/cli/) · [Get Claude Code](https://code.claude.com/docs/en/quickstart)
|
|
10
|
+
|
|
11
|
+
Install the CLI in a persistent environment. The Codex and Claude Code plugins use the absolute path to this installation.
|
|
12
|
+
|
|
13
|
+
With uv, the tool gets its own environment. If your shell cannot find `ratifypoint`, run `uv tool update-shell` and open a new terminal.
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
uv tool install ratifypoint
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
With pip, activate a persistent virtual environment and run:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
python -m pip install ratifypoint
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
You can also download the wheel and source archive from GitHub Releases. Each release includes a `SHA256SUMS` file. Download all three files and run `sha256sum -c SHA256SUMS` on Linux to verify them. [PyPI package](https://pypi.org/project/ratifypoint/) · [GitHub downloads](https://github.com/semenovsd/ratifypoint/releases/latest)
|
|
26
|
+
|
|
27
|
+
### Connect Codex CLI
|
|
28
|
+
|
|
29
|
+
```sh
|
|
30
|
+
ratifypoint install codex
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Restart Codex. Open `/hooks`, review the RatifyPoint hooks, and trust them to receive project context at session start. For setup and saving, your session must allow MCP confirmation dialogs. If Codex is configured with `approval_policy = "never"`, see [Troubleshooting](#troubleshooting).
|
|
34
|
+
|
|
35
|
+
### Connect Claude Code
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
ratifypoint install claude-code
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Restart Claude Code. The plugin registers the MCP server and the hooks that deliver project context.
|
|
42
|
+
|
|
43
|
+
## Save your first rule and use it in another session
|
|
44
|
+
|
|
45
|
+
1. Open a terminal **inside the Git repository where you want to use RatifyPoint**. Records use the author returned by `git config user.name` and `git config user.email`. If either is empty, set it in this repository with `git config user.name "Your Name"` and `git config user.email "you@example.com"`, substituting your details.
|
|
46
|
+
2. Start `codex` or `claude` there. Ask **“Set up RatifyPoint for this project.”** In the two dialogs, choose where records should live and which language to write them in. **Local** keeps a new project's records on this machine. **Shared** puts them under version control when you commit them.
|
|
47
|
+
3. Try a rule that belongs in your project. For example, ask **“Save a project-wide rule in RatifyPoint: store monetary amounts as integer cents.”** Read the proposed wording and scope. Approve it to save, request a correction, or skip it. The agent reports the saved record ID after approval.
|
|
48
|
+
4. Close the session. Start a fresh session in the same project, using either connected client. Ask **“Which unit does this project use for monetary amounts? Show me the RatifyPoint record.”** With the example above, the answer should say *integer cents* and point to your saved rule. You can inspect the saved context yourself with `ratifypoint show`.
|
|
49
|
+
|
|
50
|
+
## Use it with your team
|
|
51
|
+
|
|
52
|
+
Choose **Shared** when setting up the project. Include `.ratifypoint/settings.json` and `.ratifypoint/records/` in your normal Git commits and code reviews. Teammates install the plugin on their own machines, pull the branch, and start their client in the project. A clone that already contains the settings and records is ready for use.
|
|
53
|
+
|
|
54
|
+
In **Local** mode, records live under `.ratifypoint/` in the main worktree and are excluded from Git through `.git/info/exclude`. Switching a previously shared project to Local does not untrack existing commits or files. Keep credentials and tokens out of records.
|
|
55
|
+
|
|
56
|
+
## Everyday use
|
|
57
|
+
|
|
58
|
+
| What you want to do | What to ask your agent |
|
|
59
|
+
| --- | --- |
|
|
60
|
+
| Save a scoped decision | “Record our decision to use integer cents for every monetary amount under `app/payments/`.” |
|
|
61
|
+
| Find knowledge by topic | “What did we decide about rounding payments? Show me the matching records.” |
|
|
62
|
+
| See which rules apply to a file | “Which RatifyPoint records apply to `app/payments/refund.py`?” |
|
|
63
|
+
| Correct a decision | “Update the payments decision to use integer micro-units. Show me the replacement.” |
|
|
64
|
+
| Retire a rule | “The old refund policy no longer applies. Retire its RatifyPoint record.” |
|
|
65
|
+
| Review old or conflicting records | “Run a RatifyPoint cleanup and take me through the records that need a decision.” |
|
|
66
|
+
|
|
67
|
+
Replacements and retirements require confirmation and preserve earlier versions. A project-wide rule uses the scope `./`. A folder or file scope lets an agent retrieve more specific instructions before it changes that path. You can also save facts, risks, open questions, procedures and profiles of project resources.
|
|
68
|
+
|
|
69
|
+
| Terminal command | What it tells you |
|
|
70
|
+
| --- | --- |
|
|
71
|
+
| `ratifypoint status` | Storage mode, record counts, plugin file status and data problems |
|
|
72
|
+
| `ratifypoint show` | Project context and records grouped by scope |
|
|
73
|
+
| `ratifypoint show app/payments/refund.py` | Context for a particular path |
|
|
74
|
+
| `ratifypoint report` | Whether client logs show delivery of current scoped records before file edits during the last seven days |
|
|
75
|
+
|
|
76
|
+
## Update or uninstall
|
|
77
|
+
|
|
78
|
+
To upgrade a PyPI installation, run `uv tool upgrade ratifypoint` or `python -m pip install --upgrade ratifypoint` in the environment you used. If you installed the 3.0.3 wheel by URL with uv, run `uv tool install --force ratifypoint` once to switch to PyPI. Run `ratifypoint install codex` or `ratifypoint install claude-code` for each connected client and start fresh sessions. In Codex, review any changed hooks in `/hooks`.
|
|
79
|
+
|
|
80
|
+
If you already have **1.x or 2.x records**, 3.x requires a record-format migration. Back up the full `.ratifypoint/` directory before upgrading. Every record version, including replaced and retired ones, needs its `see_also` field renamed to `related` where present and `format_version` set to `3`. Preserve all other values, including `knowledge_hash`. After migration, run `ratifypoint status` in the project and review any reported problems.
|
|
81
|
+
|
|
82
|
+
To uninstall, run the removal command for each client you connected, then remove the Python tool. Your project's saved records stay in place.
|
|
83
|
+
|
|
84
|
+
```sh
|
|
85
|
+
ratifypoint uninstall codex
|
|
86
|
+
ratifypoint uninstall claude-code
|
|
87
|
+
uv tool uninstall ratifypoint
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Troubleshooting
|
|
91
|
+
|
|
92
|
+
| Symptom | What to do |
|
|
93
|
+
| --- | --- |
|
|
94
|
+
| The installer cannot find `codex` or `claude` | Install the corresponding CLI and run its plugin installation command from a terminal where that CLI is on `PATH`. |
|
|
95
|
+
| The agent says it needs a Git repository | Start a fresh client from inside the intended Git checkout. |
|
|
96
|
+
| A new session misses a known rule | Run `ratifypoint status` and `ratifypoint show` in that checkout. Confirm the right branch and scope, restart the client and check `/hooks` in Codex. Status checks the generated files. A fresh session shows whether the client actually loaded them. |
|
|
97
|
+
| Setup or saving is declined without a dialog | Check whether the client allows MCP elicitation. In Codex, enable `mcp_elicitations = true` in the active granular approval policy. A session launcher or managed policy may override user settings. Reading saved records works without confirmation dialogs. |
|
|
98
|
+
| A record shows `DO NOT TRUST` | A stored knowledge field was edited by hand. Review its full contents and ask the agent to run a cleanup to confirm or correct it. |
|
|
99
|
+
|
|
100
|
+
For a Codex setup that should allow only MCP dialogs, the following is a complete top-level `approval_policy` example for `~/.codex/config.toml`. If you already have a granular policy, preserve your other choices and enable only its `mcp_elicitations` field as needed. Restart the client after editing its configuration.
|
|
101
|
+
|
|
102
|
+
```toml
|
|
103
|
+
approval_policy = { granular = { sandbox_approval = false, rules = false, mcp_elicitations = true, request_permissions = false, skill_approval = false } }
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
For help, include your operating system, client, release version, command and error message. Review any output for personal or project information before posting. [Report an installation or usage issue](https://github.com/semenovsd/ratifypoint/issues)
|
|
107
|
+
|
|
108
|
+
## Development
|
|
109
|
+
|
|
110
|
+
The [command and MCP reference](https://github.com/semenovsd/ratifypoint/blob/main/docs/REFERENCE.md) describes the public interfaces. The [architecture guide](https://github.com/semenovsd/ratifypoint/blob/main/docs/ARCHITECTURE.md) explains the source layout and how to run the complete functional workflow. See the [changelog](https://github.com/semenovsd/ratifypoint/blob/main/CHANGELOG.md) for changes by version.
|
|
111
|
+
|
|
112
|
+
Copyright 2026 RatifyPoint contributors. [Apache License 2.0](https://github.com/semenovsd/ratifypoint/blob/main/LICENSE)
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "ratifypoint"
|
|
7
|
+
version = "3.0.4"
|
|
8
|
+
description = "One knowledge base for a project and every AI coding agent that works on it."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
authors = [{name = "RatifyPoint"}]
|
|
13
|
+
keywords = [
|
|
14
|
+
"ai-agents",
|
|
15
|
+
"codex",
|
|
16
|
+
"claude-code",
|
|
17
|
+
"context",
|
|
18
|
+
"knowledge",
|
|
19
|
+
"mcp",
|
|
20
|
+
"memory",
|
|
21
|
+
"rules",
|
|
22
|
+
]
|
|
23
|
+
dependencies = [
|
|
24
|
+
"filelock>=3.20,<4",
|
|
25
|
+
"mcp>=2.2,<3",
|
|
26
|
+
"pathspec>=1.1,<2",
|
|
27
|
+
]
|
|
28
|
+
classifiers = [
|
|
29
|
+
"Development Status :: 5 - Production/Stable",
|
|
30
|
+
"Programming Language :: Python :: 3",
|
|
31
|
+
"Programming Language :: Python :: 3.11",
|
|
32
|
+
"Programming Language :: Python :: 3.12",
|
|
33
|
+
"Programming Language :: Python :: 3.13",
|
|
34
|
+
"Programming Language :: Python :: 3.14",
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
[project.scripts]
|
|
38
|
+
ratifypoint = "ratifypoint.cli:main"
|
|
39
|
+
|
|
40
|
+
[project.urls]
|
|
41
|
+
Repository = "https://github.com/semenovsd/ratifypoint"
|
|
42
|
+
Documentation = "https://github.com/semenovsd/ratifypoint/blob/main/docs/REFERENCE.md"
|
|
43
|
+
Changelog = "https://github.com/semenovsd/ratifypoint/blob/main/CHANGELOG.md"
|
|
44
|
+
|
|
45
|
+
[tool.setuptools]
|
|
46
|
+
package-dir = {"" = "src"}
|
|
47
|
+
|
|
48
|
+
[tool.setuptools.packages.find]
|
|
49
|
+
where = ["src"]
|
|
50
|
+
|
|
51
|
+
[dependency-groups]
|
|
52
|
+
dev = [
|
|
53
|
+
"check-wheel-contents>=0.6,<1",
|
|
54
|
+
"mypy>=1.18,<2",
|
|
55
|
+
"ruff>=0.12,<1",
|
|
56
|
+
"twine>=6,<7",
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
[tool.mypy]
|
|
60
|
+
python_version = "3.11"
|
|
61
|
+
strict = true
|
|
62
|
+
warn_unreachable = true
|
|
63
|
+
|
|
64
|
+
[tool.ruff]
|
|
65
|
+
target-version = "py311"
|
|
66
|
+
|
|
67
|
+
[tool.ruff.lint]
|
|
68
|
+
select = ["E", "F", "I", "UP", "B", "ANN"]
|