novarch 0.1.2__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.
- novarch-0.1.2/.gitignore +145 -0
- novarch-0.1.2/LICENSE +176 -0
- novarch-0.1.2/NOTICE +22 -0
- novarch-0.1.2/PKG-INFO +126 -0
- novarch-0.1.2/README.md +94 -0
- novarch-0.1.2/novarch/__init__.py +18 -0
- novarch-0.1.2/novarch/_client.py +393 -0
- novarch-0.1.2/novarch/_gate.py +591 -0
- novarch-0.1.2/novarch/_state.py +188 -0
- novarch-0.1.2/novarch/_version.py +22 -0
- novarch-0.1.2/novarch/augur.py +489 -0
- novarch-0.1.2/novarch/exceptions.py +91 -0
- novarch-0.1.2/novarch/integrations/__init__.py +16 -0
- novarch-0.1.2/novarch/integrations/claude_agent_sdk.py +95 -0
- novarch-0.1.2/novarch/integrations/langchain.py +279 -0
- novarch-0.1.2/novarch/integrations/langgraph.py +425 -0
- novarch-0.1.2/novarch/integrations/llm_protocol.py +55 -0
- novarch-0.1.2/novarch/schema.py +307 -0
- novarch-0.1.2/novarch/signals.py +58 -0
- novarch-0.1.2/novarch/verticals/__init__.py +16 -0
- novarch-0.1.2/novarch/verticals/ap.py +13 -0
- novarch-0.1.2/novarch/verticals/cs.py +16 -0
- novarch-0.1.2/novarch/verticals/generic.py +12 -0
- novarch-0.1.2/pyproject.toml +64 -0
novarch-0.1.2/.gitignore
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# Python — build/packaging artifacts. The generic dir names are ROOT-ANCHORED:
|
|
2
|
+
# the stock unanchored forms match at any depth and silently swallow new files
|
|
3
|
+
# in same-named JS-tree dirs (web/src/lib/, docs-site/src/lib/ — the tracked
|
|
4
|
+
# files there predate the collision and masked it). Python only builds these
|
|
5
|
+
# at a project root, so anchor here and list sdk/'s own build dirs explicitly.
|
|
6
|
+
__pycache__/
|
|
7
|
+
*.py[cod]
|
|
8
|
+
*$py.class
|
|
9
|
+
*.so
|
|
10
|
+
.Python
|
|
11
|
+
/build/
|
|
12
|
+
/develop-eggs/
|
|
13
|
+
/dist/
|
|
14
|
+
/downloads/
|
|
15
|
+
/eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
/lib/
|
|
18
|
+
/lib64/
|
|
19
|
+
/parts/
|
|
20
|
+
/sdist/
|
|
21
|
+
/var/
|
|
22
|
+
/wheels/
|
|
23
|
+
sdk/build/
|
|
24
|
+
sdk/dist/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
|
|
30
|
+
# Virtual environments
|
|
31
|
+
venv/
|
|
32
|
+
env/
|
|
33
|
+
ENV/
|
|
34
|
+
.venv
|
|
35
|
+
|
|
36
|
+
# UV
|
|
37
|
+
.uv/
|
|
38
|
+
uv.lock
|
|
39
|
+
|
|
40
|
+
# IDEs
|
|
41
|
+
.vscode/
|
|
42
|
+
.idea/
|
|
43
|
+
*.swp
|
|
44
|
+
*.swo
|
|
45
|
+
*~
|
|
46
|
+
.DS_Store
|
|
47
|
+
coverage-*.xml
|
|
48
|
+
|
|
49
|
+
# Testing
|
|
50
|
+
.pytest_cache/
|
|
51
|
+
.coverage
|
|
52
|
+
coverage-*.xml
|
|
53
|
+
htmlcov/
|
|
54
|
+
.tox/
|
|
55
|
+
.mypy_cache/
|
|
56
|
+
.ruff_cache/
|
|
57
|
+
|
|
58
|
+
# Playwright
|
|
59
|
+
playwright-report/
|
|
60
|
+
playwright/.cache/
|
|
61
|
+
test-results/
|
|
62
|
+
web/e2e/.auth/
|
|
63
|
+
|
|
64
|
+
# Environment variables
|
|
65
|
+
.env
|
|
66
|
+
.env.local
|
|
67
|
+
.env.*.local
|
|
68
|
+
|
|
69
|
+
# Logs
|
|
70
|
+
*.log
|
|
71
|
+
logs/
|
|
72
|
+
|
|
73
|
+
# Database
|
|
74
|
+
*.db
|
|
75
|
+
*.sqlite
|
|
76
|
+
*.sqlite3
|
|
77
|
+
*.sqlite-journal
|
|
78
|
+
*.sqlite-wal
|
|
79
|
+
*.sqlite-shm
|
|
80
|
+
|
|
81
|
+
# Temporary files
|
|
82
|
+
tmp/
|
|
83
|
+
temp/
|
|
84
|
+
*.tmp
|
|
85
|
+
|
|
86
|
+
# OS
|
|
87
|
+
.DS_Store
|
|
88
|
+
Thumbs.db
|
|
89
|
+
|
|
90
|
+
# Intellij
|
|
91
|
+
*.iml
|
|
92
|
+
|
|
93
|
+
## CLAUDE
|
|
94
|
+
.claude
|
|
95
|
+
|
|
96
|
+
node_modules
|
|
97
|
+
.gstack/
|
|
98
|
+
|
|
99
|
+
# Platform UI shell — web/node_modules is dev-local; static/app is the Vite
|
|
100
|
+
# build output, built by CI (build-web job) and shipped via hatchling
|
|
101
|
+
# [tool.hatch.build] artifacts, not committed.
|
|
102
|
+
web/node_modules/
|
|
103
|
+
novarch_server/static/app/
|
|
104
|
+
|
|
105
|
+
# Git worktrees
|
|
106
|
+
.worktrees/
|
|
107
|
+
|
|
108
|
+
# Rendered demo HTML (regenerated from fixtures)
|
|
109
|
+
demo/out/*.html
|
|
110
|
+
|
|
111
|
+
# docs-site build artifacts (source is tracked; node_modules/dist are not —
|
|
112
|
+
# see docs-site/.gitignore)
|
|
113
|
+
docs-site/node_modules/
|
|
114
|
+
docs-site/dist/
|
|
115
|
+
docs-site/.astro/
|
|
116
|
+
|
|
117
|
+
# Wrangler local state (Cloudflare Workers deploy cache)
|
|
118
|
+
.wrangler/
|
|
119
|
+
|
|
120
|
+
# other docs
|
|
121
|
+
docs/adversarial_reviews
|
|
122
|
+
docs/claude-design
|
|
123
|
+
docs/cowork-context
|
|
124
|
+
|
|
125
|
+
# Local context dirs (per Phase 0 .gitignore spec)
|
|
126
|
+
.context/
|
|
127
|
+
.env*
|
|
128
|
+
# ...but the committed template is the documented setup path.
|
|
129
|
+
!.env.example
|
|
130
|
+
|
|
131
|
+
# Adversarial review responses (untracked working notes)
|
|
132
|
+
docs/adversarial_review_response.md
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
# Conversation exports from /export command
|
|
136
|
+
20[0-9][0-9]-*.txt
|
|
137
|
+
|
|
138
|
+
# Novarch landing
|
|
139
|
+
novarch-landing/
|
|
140
|
+
|
|
141
|
+
# v0.1.1 Phase 0 additions (partner-track readiness)
|
|
142
|
+
*.partner.md
|
|
143
|
+
|
|
144
|
+
# Superpowers brainstorming visual companion
|
|
145
|
+
.superpowers/
|
novarch-0.1.2/LICENSE
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
novarch-0.1.2/NOTICE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
novarch
|
|
2
|
+
Copyright 2026 Novarch Corp.
|
|
3
|
+
|
|
4
|
+
This product includes software developed at Galileo
|
|
5
|
+
(https://github.com/agentcontrol/agent-control), licensed under the
|
|
6
|
+
Apache License, Version 2.0.
|
|
7
|
+
|
|
8
|
+
novarch is forked from agentcontrol/agent-control at upstream commit
|
|
9
|
+
07ba22f21efcef1345b0f88309ad5d6dc913aa5b
|
|
10
|
+
(https://github.com/agentcontrol/agent-control/commit/07ba22f21efcef1345b0f88309ad5d6dc913aa5b).
|
|
11
|
+
|
|
12
|
+
Significant modifications:
|
|
13
|
+
- Adds the Augur governance layer (signal extractors, LLM-as-judge,
|
|
14
|
+
natural-language rules, tenant/team/agent governance hierarchy)
|
|
15
|
+
on top of agent-control's evaluation pipeline. See CLAUDE.md.
|
|
16
|
+
- Removes upstream CI workflows and release tooling (.github,
|
|
17
|
+
.githooks). novarch ships its own pipelines.
|
|
18
|
+
|
|
19
|
+
novarch is distributed under the PolyForm Shield License 1.0.0 (see LICENSE).
|
|
20
|
+
The original Apache License 2.0, under which the now-deleted upstream
|
|
21
|
+
agent-control was distributed, is preserved in this repository as
|
|
22
|
+
LICENSE-APACHE-2.0 for historical attribution.
|
novarch-0.1.2/PKG-INFO
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: novarch
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: Runtime governance and kill switch for AI agents in production — client SDK.
|
|
5
|
+
Project-URL: Homepage, https://novarch.ai
|
|
6
|
+
Project-URL: Documentation, https://docs.novarch.ai
|
|
7
|
+
Author-email: Novarch <support@novarch.ai>
|
|
8
|
+
License-Expression: Apache-2.0
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
License-File: NOTICE
|
|
11
|
+
Keywords: agent,ai-safety,governance,kill-switch,llm,session
|
|
12
|
+
Classifier: Development Status :: 3 - Alpha
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Topic :: Security
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
|
+
Requires-Python: >=3.11
|
|
21
|
+
Requires-Dist: httpx>=0.26.0
|
|
22
|
+
Requires-Dist: pydantic<3.0,>=2.9.0
|
|
23
|
+
Provides-Extra: adk
|
|
24
|
+
Requires-Dist: claude-agent-sdk<1,>=0.2; extra == 'adk'
|
|
25
|
+
Provides-Extra: langchain
|
|
26
|
+
Requires-Dist: langchain-anthropic<2,>=1; extra == 'langchain'
|
|
27
|
+
Requires-Dist: langchain-core<2,>=1; extra == 'langchain'
|
|
28
|
+
Provides-Extra: langgraph
|
|
29
|
+
Requires-Dist: langgraph-prebuilt<2,>=1.0.2; extra == 'langgraph'
|
|
30
|
+
Requires-Dist: langgraph<2,>=1.0; extra == 'langgraph'
|
|
31
|
+
Description-Content-Type: text/markdown
|
|
32
|
+
|
|
33
|
+
# Novarch
|
|
34
|
+
|
|
35
|
+
The enforcement layer for AI agents in production — client SDK. Blocks clear rule violations autonomously and pauses borderline actions for a human operator (the "kill switch" buyers ask for, underwritten by a session-level judge).
|
|
36
|
+
|
|
37
|
+
Novarch sits between your agent and its irreversible actions. Read tools run
|
|
38
|
+
freely and are buffered as evidence. The moment the agent attempts a
|
|
39
|
+
**write**, Novarch materializes the buffered reads + the agent's stated
|
|
40
|
+
reasoning into an `Action`, the Novarch judge applies your team's
|
|
41
|
+
plain-English rules, and the write either proceeds (`pass`), pauses for a
|
|
42
|
+
human operator (`hold`), or is stopped cold (`kill`) — with the rule and
|
|
43
|
+
signals cited in an auditable `Decision` record.
|
|
44
|
+
|
|
45
|
+
This package is the **client SDK**: decorators, the wire-contract schema,
|
|
46
|
+
and framework integrations. It talks to a Novarch deployment — managed by
|
|
47
|
+
us, or running in your VPC. To get an endpoint and SDK key for a pilot or
|
|
48
|
+
sandbox, contact <support@novarch.ai> or visit <https://novarch.ai>.
|
|
49
|
+
|
|
50
|
+
## Install
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
pip install novarch # SDK
|
|
54
|
+
pip install "novarch[langchain]" # + LangChain adapter
|
|
55
|
+
pip install "novarch[langgraph]" # + LangGraph adapter (wrap_tool_call seam)
|
|
56
|
+
pip install "novarch[adk]" # + Claude Agent SDK adapter
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Adapters for **LangChain**, **LangGraph**, and the **Claude Agent SDK** ship as
|
|
60
|
+
optional extras. Both sync and `async def` tools are gated natively — the
|
|
61
|
+
`@augur.tool` / `@augur.session` decorators dispatch on the wrapped function.
|
|
62
|
+
|
|
63
|
+
## Sixty-second integration
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
export NOVARCH_SERVER_URL=https://<your-deployment>
|
|
67
|
+
export NOVARCH_SDK_KEY=<your-sdk-key>
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
```python
|
|
71
|
+
from novarch import augur, NovarchKillError
|
|
72
|
+
from novarch.verticals.ap import APContext
|
|
73
|
+
|
|
74
|
+
@augur.tool(kind="read")
|
|
75
|
+
def lookup_vendor(vendor_id: str) -> dict:
|
|
76
|
+
return vendor_db.lookup(vendor_id)
|
|
77
|
+
|
|
78
|
+
@augur.tool(
|
|
79
|
+
kind="write",
|
|
80
|
+
action_type="process_invoice",
|
|
81
|
+
context_builder=lambda invoice: APContext(
|
|
82
|
+
vendor_id=invoice["vendor_id"],
|
|
83
|
+
vendor_name=invoice["vendor_name"],
|
|
84
|
+
invoice_id=invoice["invoice_id"],
|
|
85
|
+
amount=invoice["amount"],
|
|
86
|
+
payment_method="ach",
|
|
87
|
+
approval_threshold=25000.0,
|
|
88
|
+
vendor_in_master_db=True,
|
|
89
|
+
domain_similarity_to_canonical=1.0,
|
|
90
|
+
off_cycle=False,
|
|
91
|
+
agent_confidence=0.95,
|
|
92
|
+
),
|
|
93
|
+
)
|
|
94
|
+
def submit_payment(invoice: dict) -> str:
|
|
95
|
+
return payments_api.submit(invoice)
|
|
96
|
+
|
|
97
|
+
@augur.session(
|
|
98
|
+
tenant_id="enterprise-ap-ops",
|
|
99
|
+
team_id="accounts-payable",
|
|
100
|
+
agent_id="ap-agent-014",
|
|
101
|
+
)
|
|
102
|
+
def run(invoice):
|
|
103
|
+
lookup_vendor(invoice["vendor_id"]) # buffers a read
|
|
104
|
+
augur.set_reasoning("Vendor known; bank verified.")
|
|
105
|
+
submit_payment(invoice) # gated write — judge fires here
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
- `pass` → the write executes.
|
|
109
|
+
- `hold` → the SDK blocks while a human operator approves or denies in the
|
|
110
|
+
triage dashboard; denial (or timeout) raises `NovarchKillError`.
|
|
111
|
+
- `kill` → `NovarchKillError` immediately; the write never executes.
|
|
112
|
+
- Any uncertainty — judge error, timeout, server restart — **fails closed**.
|
|
113
|
+
|
|
114
|
+
Typed context helpers ship for **Accounts Payable** (`novarch.verticals.ap.APContext`)
|
|
115
|
+
and **Customer Support** (`novarch.verticals.cs.CSContext`); `GenericContext`
|
|
116
|
+
covers any other vertical.
|
|
117
|
+
|
|
118
|
+
## Docs
|
|
119
|
+
|
|
120
|
+
Full documentation: <https://docs.novarch.ai> · Product: <https://novarch.ai>
|
|
121
|
+
|
|
122
|
+
## License
|
|
123
|
+
|
|
124
|
+
Apache-2.0 (this client SDK). The Novarch platform — judge, rules engine,
|
|
125
|
+
operator triage — is separately licensed and available as a managed service
|
|
126
|
+
or private deployment.
|
novarch-0.1.2/README.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# Novarch
|
|
2
|
+
|
|
3
|
+
The enforcement layer for AI agents in production — client SDK. Blocks clear rule violations autonomously and pauses borderline actions for a human operator (the "kill switch" buyers ask for, underwritten by a session-level judge).
|
|
4
|
+
|
|
5
|
+
Novarch sits between your agent and its irreversible actions. Read tools run
|
|
6
|
+
freely and are buffered as evidence. The moment the agent attempts a
|
|
7
|
+
**write**, Novarch materializes the buffered reads + the agent's stated
|
|
8
|
+
reasoning into an `Action`, the Novarch judge applies your team's
|
|
9
|
+
plain-English rules, and the write either proceeds (`pass`), pauses for a
|
|
10
|
+
human operator (`hold`), or is stopped cold (`kill`) — with the rule and
|
|
11
|
+
signals cited in an auditable `Decision` record.
|
|
12
|
+
|
|
13
|
+
This package is the **client SDK**: decorators, the wire-contract schema,
|
|
14
|
+
and framework integrations. It talks to a Novarch deployment — managed by
|
|
15
|
+
us, or running in your VPC. To get an endpoint and SDK key for a pilot or
|
|
16
|
+
sandbox, contact <support@novarch.ai> or visit <https://novarch.ai>.
|
|
17
|
+
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
pip install novarch # SDK
|
|
22
|
+
pip install "novarch[langchain]" # + LangChain adapter
|
|
23
|
+
pip install "novarch[langgraph]" # + LangGraph adapter (wrap_tool_call seam)
|
|
24
|
+
pip install "novarch[adk]" # + Claude Agent SDK adapter
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Adapters for **LangChain**, **LangGraph**, and the **Claude Agent SDK** ship as
|
|
28
|
+
optional extras. Both sync and `async def` tools are gated natively — the
|
|
29
|
+
`@augur.tool` / `@augur.session` decorators dispatch on the wrapped function.
|
|
30
|
+
|
|
31
|
+
## Sixty-second integration
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
export NOVARCH_SERVER_URL=https://<your-deployment>
|
|
35
|
+
export NOVARCH_SDK_KEY=<your-sdk-key>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
```python
|
|
39
|
+
from novarch import augur, NovarchKillError
|
|
40
|
+
from novarch.verticals.ap import APContext
|
|
41
|
+
|
|
42
|
+
@augur.tool(kind="read")
|
|
43
|
+
def lookup_vendor(vendor_id: str) -> dict:
|
|
44
|
+
return vendor_db.lookup(vendor_id)
|
|
45
|
+
|
|
46
|
+
@augur.tool(
|
|
47
|
+
kind="write",
|
|
48
|
+
action_type="process_invoice",
|
|
49
|
+
context_builder=lambda invoice: APContext(
|
|
50
|
+
vendor_id=invoice["vendor_id"],
|
|
51
|
+
vendor_name=invoice["vendor_name"],
|
|
52
|
+
invoice_id=invoice["invoice_id"],
|
|
53
|
+
amount=invoice["amount"],
|
|
54
|
+
payment_method="ach",
|
|
55
|
+
approval_threshold=25000.0,
|
|
56
|
+
vendor_in_master_db=True,
|
|
57
|
+
domain_similarity_to_canonical=1.0,
|
|
58
|
+
off_cycle=False,
|
|
59
|
+
agent_confidence=0.95,
|
|
60
|
+
),
|
|
61
|
+
)
|
|
62
|
+
def submit_payment(invoice: dict) -> str:
|
|
63
|
+
return payments_api.submit(invoice)
|
|
64
|
+
|
|
65
|
+
@augur.session(
|
|
66
|
+
tenant_id="enterprise-ap-ops",
|
|
67
|
+
team_id="accounts-payable",
|
|
68
|
+
agent_id="ap-agent-014",
|
|
69
|
+
)
|
|
70
|
+
def run(invoice):
|
|
71
|
+
lookup_vendor(invoice["vendor_id"]) # buffers a read
|
|
72
|
+
augur.set_reasoning("Vendor known; bank verified.")
|
|
73
|
+
submit_payment(invoice) # gated write — judge fires here
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
- `pass` → the write executes.
|
|
77
|
+
- `hold` → the SDK blocks while a human operator approves or denies in the
|
|
78
|
+
triage dashboard; denial (or timeout) raises `NovarchKillError`.
|
|
79
|
+
- `kill` → `NovarchKillError` immediately; the write never executes.
|
|
80
|
+
- Any uncertainty — judge error, timeout, server restart — **fails closed**.
|
|
81
|
+
|
|
82
|
+
Typed context helpers ship for **Accounts Payable** (`novarch.verticals.ap.APContext`)
|
|
83
|
+
and **Customer Support** (`novarch.verticals.cs.CSContext`); `GenericContext`
|
|
84
|
+
covers any other vertical.
|
|
85
|
+
|
|
86
|
+
## Docs
|
|
87
|
+
|
|
88
|
+
Full documentation: <https://docs.novarch.ai> · Product: <https://novarch.ai>
|
|
89
|
+
|
|
90
|
+
## License
|
|
91
|
+
|
|
92
|
+
Apache-2.0 (this client SDK). The Novarch platform — judge, rules engine,
|
|
93
|
+
operator triage — is separately licensed and available as a managed service
|
|
94
|
+
or private deployment.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Novarch SDK — public surface customers depend on.
|
|
2
|
+
|
|
3
|
+
``from novarch import augur, NovarchKillError`` is the only import customers
|
|
4
|
+
need. Everything else (HTTP client, ContextVar plumbing, upstream wrapping)
|
|
5
|
+
is private.
|
|
6
|
+
|
|
7
|
+
See ``docs/designs/live-system-implementation.md`` Phase 3.
|
|
8
|
+
"""
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
from novarch._version import __version__ as __version__ # re-export (not in __all__)
|
|
12
|
+
from novarch.augur import augur
|
|
13
|
+
from novarch.exceptions import NovarchKillError
|
|
14
|
+
|
|
15
|
+
# ``__version__`` is accessible as ``novarch.__version__`` but deliberately
|
|
16
|
+
# kept out of ``__all__`` — the ``*``-exported surface stays augur +
|
|
17
|
+
# NovarchKillError only (see test_public_novarch_surface_is_minimal).
|
|
18
|
+
__all__ = ["augur", "NovarchKillError"]
|