enterprise-rag-patterns 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- enterprise_rag_patterns-0.1.0/LICENSE +21 -0
- enterprise_rag_patterns-0.1.0/PKG-INFO +162 -0
- enterprise_rag_patterns-0.1.0/README.md +129 -0
- enterprise_rag_patterns-0.1.0/pyproject.toml +73 -0
- enterprise_rag_patterns-0.1.0/setup.cfg +4 -0
- enterprise_rag_patterns-0.1.0/src/enterprise_rag_patterns/__init__.py +31 -0
- enterprise_rag_patterns-0.1.0/src/enterprise_rag_patterns/compliance.py +315 -0
- enterprise_rag_patterns-0.1.0/src/enterprise_rag_patterns/context.py +26 -0
- enterprise_rag_patterns-0.1.0/src/enterprise_rag_patterns/policy.py +20 -0
- enterprise_rag_patterns-0.1.0/src/enterprise_rag_patterns/session.py +18 -0
- enterprise_rag_patterns-0.1.0/src/enterprise_rag_patterns.egg-info/PKG-INFO +162 -0
- enterprise_rag_patterns-0.1.0/src/enterprise_rag_patterns.egg-info/SOURCES.txt +17 -0
- enterprise_rag_patterns-0.1.0/src/enterprise_rag_patterns.egg-info/dependency_links.txt +1 -0
- enterprise_rag_patterns-0.1.0/src/enterprise_rag_patterns.egg-info/requires.txt +13 -0
- enterprise_rag_patterns-0.1.0/src/enterprise_rag_patterns.egg-info/top_level.txt +1 -0
- enterprise_rag_patterns-0.1.0/tests/test_compliance.py +226 -0
- enterprise_rag_patterns-0.1.0/tests/test_context.py +54 -0
- enterprise_rag_patterns-0.1.0/tests/test_policy.py +37 -0
- enterprise_rag_patterns-0.1.0/tests/test_session.py +38 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ashutosh Rana
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: enterprise-rag-patterns
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Reference patterns for compliance-aware retrieval-augmented workflows, context continuity, and governed AI integration in enterprise environments.
|
|
5
|
+
Author: Ashutosh Rana
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/ashutoshrana/enterprise-rag-patterns
|
|
8
|
+
Project-URL: Issues, https://github.com/ashutoshrana/enterprise-rag-patterns/issues
|
|
9
|
+
Project-URL: Changelog, https://github.com/ashutoshrana/enterprise-rag-patterns/blob/main/CHANGELOG.md
|
|
10
|
+
Keywords: rag,retrieval-augmented-generation,ferpa,enterprise-ai,compliance,llm,higher-education,regulated-ai,agentic-ai,enterprise-patterns
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
License-File: LICENSE
|
|
23
|
+
Provides-Extra: test
|
|
24
|
+
Requires-Dist: pytest>=7.0; extra == "test"
|
|
25
|
+
Requires-Dist: pytest-cov>=4.0; extra == "test"
|
|
26
|
+
Provides-Extra: lint
|
|
27
|
+
Requires-Dist: ruff>=0.4.0; extra == "lint"
|
|
28
|
+
Provides-Extra: typecheck
|
|
29
|
+
Requires-Dist: mypy>=1.0; extra == "typecheck"
|
|
30
|
+
Provides-Extra: dev
|
|
31
|
+
Requires-Dist: enterprise-rag-patterns[lint,test,typecheck]; extra == "dev"
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
# enterprise-rag-patterns
|
|
35
|
+
|
|
36
|
+
[](https://github.com/ashutoshrana/enterprise-rag-patterns/actions/workflows/ci.yml)
|
|
37
|
+
[](LICENSE)
|
|
38
|
+
[](https://www.python.org/downloads/)
|
|
39
|
+
[](https://pypi.org/project/enterprise-rag-patterns/)
|
|
40
|
+
|
|
41
|
+
Practical reference patterns for retrieval-augmented workflows, context continuity, and governed AI integration in enterprise environments.
|
|
42
|
+
|
|
43
|
+
## Why this repo exists
|
|
44
|
+
|
|
45
|
+
Most examples of AI assistants stop at demo quality. Real enterprise systems have harder problems:
|
|
46
|
+
- multiple source systems
|
|
47
|
+
- fragmented context
|
|
48
|
+
- workflow continuity across channels
|
|
49
|
+
- compliance and audit requirements
|
|
50
|
+
- human handoff only when it is actually needed
|
|
51
|
+
|
|
52
|
+
This repository is a public-safe, anonymized scaffold for those patterns.
|
|
53
|
+
|
|
54
|
+
## Pattern themes
|
|
55
|
+
|
|
56
|
+
The examples in this repository are designed for teams building systems such as:
|
|
57
|
+
- omnichannel service and enrollment workflows
|
|
58
|
+
- multi-step document and verification processes
|
|
59
|
+
- enterprise knowledge retrieval and action support
|
|
60
|
+
- AI-assisted operations that require auditability and controlled human handoff
|
|
61
|
+
|
|
62
|
+
## Scope
|
|
63
|
+
|
|
64
|
+
This repo focuses on:
|
|
65
|
+
- context assembly for AI workflows
|
|
66
|
+
- session continuity across channels
|
|
67
|
+
- human-in-loop escalation rules
|
|
68
|
+
- enterprise-safe action boundaries
|
|
69
|
+
- compliance and audit patterns for regulated environments (FERPA and similar frameworks)
|
|
70
|
+
- reference architecture notes for operationally sensitive deployments
|
|
71
|
+
|
|
72
|
+
The patterns are designed to be:
|
|
73
|
+
- **Cloud-agnostic** — applicable on AWS, GCP, Azure, OCI, or hybrid environments
|
|
74
|
+
- **Platform-agnostic** — not tied to any specific CRM, ERP, vector database, or LLM provider
|
|
75
|
+
- **Regulation-aware** — compliance module targets FERPA; the same pattern applies to HIPAA, GLBA, and similar record-access frameworks
|
|
76
|
+
|
|
77
|
+
It does not include customer data, institution-specific logic, or vendor-specific implementation artifacts.
|
|
78
|
+
|
|
79
|
+
## Repository structure
|
|
80
|
+
|
|
81
|
+
- `CONTRIBUTING.md`
|
|
82
|
+
- `GOVERNANCE.md`
|
|
83
|
+
- `CITATION.cff`
|
|
84
|
+
- `docs/architecture.md`
|
|
85
|
+
- `docs/implementation-note-01.md`
|
|
86
|
+
- `docs/implementation-note-02.md` — FERPA boundaries in RAG
|
|
87
|
+
- `docs/articles/`
|
|
88
|
+
- `docs/adr/`
|
|
89
|
+
- `docs/case-study-anonymized.md`
|
|
90
|
+
- `examples/context-pipeline.yaml`
|
|
91
|
+
- `examples/ferpa_rag_pipeline.py` — complete runnable FERPA-compliant pipeline
|
|
92
|
+
- `src/enterprise_rag_patterns/`
|
|
93
|
+
- `context.py` — context envelope and source assembly
|
|
94
|
+
- `session.py` — cross-channel session continuity
|
|
95
|
+
- `policy.py` — escalation and action-boundary policy objects
|
|
96
|
+
- `compliance.py` — FERPA-aware context governance with audit logging
|
|
97
|
+
|
|
98
|
+
## Why these patterns matter
|
|
99
|
+
|
|
100
|
+
Enterprise AI systems usually fail at the seams:
|
|
101
|
+
- between channels
|
|
102
|
+
- between memory and policy
|
|
103
|
+
- between the AI layer and the system-of-record
|
|
104
|
+
|
|
105
|
+
The goal here is to make those seams explicit and reusable.
|
|
106
|
+
|
|
107
|
+
## Modules
|
|
108
|
+
|
|
109
|
+
- `context.py`
|
|
110
|
+
Context envelope and source assembly patterns.
|
|
111
|
+
|
|
112
|
+
- `session.py`
|
|
113
|
+
Session memory and cross-channel continuity scaffolding.
|
|
114
|
+
|
|
115
|
+
- `policy.py`
|
|
116
|
+
Escalation and action-boundary policy objects.
|
|
117
|
+
|
|
118
|
+
- `compliance.py`
|
|
119
|
+
FERPA-aware context governance for regulated environments. Provides
|
|
120
|
+
`StudentIdentityScope` for defining retrieval boundaries, `FERPAContextPolicy`
|
|
121
|
+
for filtering retrieved documents before they enter the LLM context window,
|
|
122
|
+
and `AuditRecord` for 34 CFR § 99.32 disclosure logging.
|
|
123
|
+
See `docs/implementation-note-02.md` for design rationale and usage guidance.
|
|
124
|
+
|
|
125
|
+
## Intended audience
|
|
126
|
+
|
|
127
|
+
- enterprise architects
|
|
128
|
+
- AI platform engineers
|
|
129
|
+
- enterprise platform and workflow operators
|
|
130
|
+
- applied AI teams working in regulated or multi-system environments
|
|
131
|
+
|
|
132
|
+
## Public positioning
|
|
133
|
+
|
|
134
|
+
This repo is meant to show practical architecture thinking, not marketing language.
|
|
135
|
+
|
|
136
|
+
## Near-term roadmap
|
|
137
|
+
|
|
138
|
+
- add architecture decision records for cross-channel continuity
|
|
139
|
+
- publish a reference event flow for system-of-record synchronization
|
|
140
|
+
- add policy examples for human escalation thresholds
|
|
141
|
+
- document anonymized implementation lessons from production-style operating environments
|
|
142
|
+
|
|
143
|
+
## Published notes
|
|
144
|
+
|
|
145
|
+
- implementation note 01: [`docs/implementation-note-01.md`](./docs/implementation-note-01.md) — Cross-channel continuity problem and solution
|
|
146
|
+
- implementation note 02: [`docs/implementation-note-02.md`](./docs/implementation-note-02.md) — FERPA boundaries in retrieval-augmented generation
|
|
147
|
+
- article: [`docs/articles/production-grade-rag-in-regulated-enterprise-environments.md`](./docs/articles/production-grade-rag-in-regulated-enterprise-environments.md)
|
|
148
|
+
|
|
149
|
+
## Project governance
|
|
150
|
+
|
|
151
|
+
- contribution guidance: [`CONTRIBUTING.md`](./CONTRIBUTING.md)
|
|
152
|
+
- governance model: [`GOVERNANCE.md`](./GOVERNANCE.md)
|
|
153
|
+
- architecture decisions: [`docs/adr`](./docs/adr)
|
|
154
|
+
- system overview: [`docs/architecture.md`](./docs/architecture.md)
|
|
155
|
+
|
|
156
|
+
## Citing this work
|
|
157
|
+
|
|
158
|
+
If you use these patterns in your work, see `CITATION.cff` or use GitHub's "Cite this repository" button above.
|
|
159
|
+
|
|
160
|
+
## Status
|
|
161
|
+
|
|
162
|
+
Active development. Current focus: compliance-aware RAG patterns for regulated enterprise environments, applicable across cloud providers and enterprise platforms.
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# enterprise-rag-patterns
|
|
2
|
+
|
|
3
|
+
[](https://github.com/ashutoshrana/enterprise-rag-patterns/actions/workflows/ci.yml)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
[](https://www.python.org/downloads/)
|
|
6
|
+
[](https://pypi.org/project/enterprise-rag-patterns/)
|
|
7
|
+
|
|
8
|
+
Practical reference patterns for retrieval-augmented workflows, context continuity, and governed AI integration in enterprise environments.
|
|
9
|
+
|
|
10
|
+
## Why this repo exists
|
|
11
|
+
|
|
12
|
+
Most examples of AI assistants stop at demo quality. Real enterprise systems have harder problems:
|
|
13
|
+
- multiple source systems
|
|
14
|
+
- fragmented context
|
|
15
|
+
- workflow continuity across channels
|
|
16
|
+
- compliance and audit requirements
|
|
17
|
+
- human handoff only when it is actually needed
|
|
18
|
+
|
|
19
|
+
This repository is a public-safe, anonymized scaffold for those patterns.
|
|
20
|
+
|
|
21
|
+
## Pattern themes
|
|
22
|
+
|
|
23
|
+
The examples in this repository are designed for teams building systems such as:
|
|
24
|
+
- omnichannel service and enrollment workflows
|
|
25
|
+
- multi-step document and verification processes
|
|
26
|
+
- enterprise knowledge retrieval and action support
|
|
27
|
+
- AI-assisted operations that require auditability and controlled human handoff
|
|
28
|
+
|
|
29
|
+
## Scope
|
|
30
|
+
|
|
31
|
+
This repo focuses on:
|
|
32
|
+
- context assembly for AI workflows
|
|
33
|
+
- session continuity across channels
|
|
34
|
+
- human-in-loop escalation rules
|
|
35
|
+
- enterprise-safe action boundaries
|
|
36
|
+
- compliance and audit patterns for regulated environments (FERPA and similar frameworks)
|
|
37
|
+
- reference architecture notes for operationally sensitive deployments
|
|
38
|
+
|
|
39
|
+
The patterns are designed to be:
|
|
40
|
+
- **Cloud-agnostic** — applicable on AWS, GCP, Azure, OCI, or hybrid environments
|
|
41
|
+
- **Platform-agnostic** — not tied to any specific CRM, ERP, vector database, or LLM provider
|
|
42
|
+
- **Regulation-aware** — compliance module targets FERPA; the same pattern applies to HIPAA, GLBA, and similar record-access frameworks
|
|
43
|
+
|
|
44
|
+
It does not include customer data, institution-specific logic, or vendor-specific implementation artifacts.
|
|
45
|
+
|
|
46
|
+
## Repository structure
|
|
47
|
+
|
|
48
|
+
- `CONTRIBUTING.md`
|
|
49
|
+
- `GOVERNANCE.md`
|
|
50
|
+
- `CITATION.cff`
|
|
51
|
+
- `docs/architecture.md`
|
|
52
|
+
- `docs/implementation-note-01.md`
|
|
53
|
+
- `docs/implementation-note-02.md` — FERPA boundaries in RAG
|
|
54
|
+
- `docs/articles/`
|
|
55
|
+
- `docs/adr/`
|
|
56
|
+
- `docs/case-study-anonymized.md`
|
|
57
|
+
- `examples/context-pipeline.yaml`
|
|
58
|
+
- `examples/ferpa_rag_pipeline.py` — complete runnable FERPA-compliant pipeline
|
|
59
|
+
- `src/enterprise_rag_patterns/`
|
|
60
|
+
- `context.py` — context envelope and source assembly
|
|
61
|
+
- `session.py` — cross-channel session continuity
|
|
62
|
+
- `policy.py` — escalation and action-boundary policy objects
|
|
63
|
+
- `compliance.py` — FERPA-aware context governance with audit logging
|
|
64
|
+
|
|
65
|
+
## Why these patterns matter
|
|
66
|
+
|
|
67
|
+
Enterprise AI systems usually fail at the seams:
|
|
68
|
+
- between channels
|
|
69
|
+
- between memory and policy
|
|
70
|
+
- between the AI layer and the system-of-record
|
|
71
|
+
|
|
72
|
+
The goal here is to make those seams explicit and reusable.
|
|
73
|
+
|
|
74
|
+
## Modules
|
|
75
|
+
|
|
76
|
+
- `context.py`
|
|
77
|
+
Context envelope and source assembly patterns.
|
|
78
|
+
|
|
79
|
+
- `session.py`
|
|
80
|
+
Session memory and cross-channel continuity scaffolding.
|
|
81
|
+
|
|
82
|
+
- `policy.py`
|
|
83
|
+
Escalation and action-boundary policy objects.
|
|
84
|
+
|
|
85
|
+
- `compliance.py`
|
|
86
|
+
FERPA-aware context governance for regulated environments. Provides
|
|
87
|
+
`StudentIdentityScope` for defining retrieval boundaries, `FERPAContextPolicy`
|
|
88
|
+
for filtering retrieved documents before they enter the LLM context window,
|
|
89
|
+
and `AuditRecord` for 34 CFR § 99.32 disclosure logging.
|
|
90
|
+
See `docs/implementation-note-02.md` for design rationale and usage guidance.
|
|
91
|
+
|
|
92
|
+
## Intended audience
|
|
93
|
+
|
|
94
|
+
- enterprise architects
|
|
95
|
+
- AI platform engineers
|
|
96
|
+
- enterprise platform and workflow operators
|
|
97
|
+
- applied AI teams working in regulated or multi-system environments
|
|
98
|
+
|
|
99
|
+
## Public positioning
|
|
100
|
+
|
|
101
|
+
This repo is meant to show practical architecture thinking, not marketing language.
|
|
102
|
+
|
|
103
|
+
## Near-term roadmap
|
|
104
|
+
|
|
105
|
+
- add architecture decision records for cross-channel continuity
|
|
106
|
+
- publish a reference event flow for system-of-record synchronization
|
|
107
|
+
- add policy examples for human escalation thresholds
|
|
108
|
+
- document anonymized implementation lessons from production-style operating environments
|
|
109
|
+
|
|
110
|
+
## Published notes
|
|
111
|
+
|
|
112
|
+
- implementation note 01: [`docs/implementation-note-01.md`](./docs/implementation-note-01.md) — Cross-channel continuity problem and solution
|
|
113
|
+
- implementation note 02: [`docs/implementation-note-02.md`](./docs/implementation-note-02.md) — FERPA boundaries in retrieval-augmented generation
|
|
114
|
+
- article: [`docs/articles/production-grade-rag-in-regulated-enterprise-environments.md`](./docs/articles/production-grade-rag-in-regulated-enterprise-environments.md)
|
|
115
|
+
|
|
116
|
+
## Project governance
|
|
117
|
+
|
|
118
|
+
- contribution guidance: [`CONTRIBUTING.md`](./CONTRIBUTING.md)
|
|
119
|
+
- governance model: [`GOVERNANCE.md`](./GOVERNANCE.md)
|
|
120
|
+
- architecture decisions: [`docs/adr`](./docs/adr)
|
|
121
|
+
- system overview: [`docs/architecture.md`](./docs/architecture.md)
|
|
122
|
+
|
|
123
|
+
## Citing this work
|
|
124
|
+
|
|
125
|
+
If you use these patterns in your work, see `CITATION.cff` or use GitHub's "Cite this repository" button above.
|
|
126
|
+
|
|
127
|
+
## Status
|
|
128
|
+
|
|
129
|
+
Active development. Current focus: compliance-aware RAG patterns for regulated enterprise environments, applicable across cloud providers and enterprise platforms.
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "enterprise-rag-patterns"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Reference patterns for compliance-aware retrieval-augmented workflows, context continuity, and governed AI integration in enterprise environments."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = { text = "MIT" }
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "Ashutosh Rana" }
|
|
14
|
+
]
|
|
15
|
+
keywords = [
|
|
16
|
+
"rag",
|
|
17
|
+
"retrieval-augmented-generation",
|
|
18
|
+
"ferpa",
|
|
19
|
+
"enterprise-ai",
|
|
20
|
+
"compliance",
|
|
21
|
+
"llm",
|
|
22
|
+
"higher-education",
|
|
23
|
+
"regulated-ai",
|
|
24
|
+
"agentic-ai",
|
|
25
|
+
"enterprise-patterns",
|
|
26
|
+
]
|
|
27
|
+
classifiers = [
|
|
28
|
+
"Development Status :: 4 - Beta",
|
|
29
|
+
"Intended Audience :: Developers",
|
|
30
|
+
"License :: OSI Approved :: MIT License",
|
|
31
|
+
"Programming Language :: Python :: 3",
|
|
32
|
+
"Programming Language :: Python :: 3.10",
|
|
33
|
+
"Programming Language :: Python :: 3.11",
|
|
34
|
+
"Programming Language :: Python :: 3.12",
|
|
35
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
36
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
37
|
+
]
|
|
38
|
+
dependencies = []
|
|
39
|
+
|
|
40
|
+
[project.urls]
|
|
41
|
+
Homepage = "https://github.com/ashutoshrana/enterprise-rag-patterns"
|
|
42
|
+
Issues = "https://github.com/ashutoshrana/enterprise-rag-patterns/issues"
|
|
43
|
+
Changelog = "https://github.com/ashutoshrana/enterprise-rag-patterns/blob/main/CHANGELOG.md"
|
|
44
|
+
|
|
45
|
+
[project.optional-dependencies]
|
|
46
|
+
test = ["pytest>=7.0", "pytest-cov>=4.0"]
|
|
47
|
+
lint = ["ruff>=0.4.0"]
|
|
48
|
+
typecheck = ["mypy>=1.0"]
|
|
49
|
+
dev = [
|
|
50
|
+
"enterprise-rag-patterns[test,lint,typecheck]",
|
|
51
|
+
]
|
|
52
|
+
|
|
53
|
+
[tool.setuptools]
|
|
54
|
+
package-dir = {"" = "src"}
|
|
55
|
+
|
|
56
|
+
[tool.setuptools.packages.find]
|
|
57
|
+
where = ["src"]
|
|
58
|
+
|
|
59
|
+
[tool.pytest.ini_options]
|
|
60
|
+
testpaths = ["tests"]
|
|
61
|
+
addopts = "-v --tb=short"
|
|
62
|
+
|
|
63
|
+
[tool.ruff]
|
|
64
|
+
line-length = 100
|
|
65
|
+
target-version = "py310"
|
|
66
|
+
|
|
67
|
+
[tool.ruff.lint]
|
|
68
|
+
select = ["E", "F", "I", "UP"]
|
|
69
|
+
|
|
70
|
+
[tool.mypy]
|
|
71
|
+
python_version = "3.10"
|
|
72
|
+
strict = true
|
|
73
|
+
ignore_missing_imports = true
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""Reference patterns for enterprise retrieval and workflow-safe AI integration."""
|
|
2
|
+
|
|
3
|
+
from .compliance import (
|
|
4
|
+
AuditRecord,
|
|
5
|
+
DisclosureReason,
|
|
6
|
+
FERPAContextPolicy,
|
|
7
|
+
RecordCategory,
|
|
8
|
+
StudentIdentityScope,
|
|
9
|
+
make_enrollment_advisor_policy,
|
|
10
|
+
)
|
|
11
|
+
from .context import ContextEnvelope, ContextSource
|
|
12
|
+
from .policy import ActionPolicy, EscalationRule
|
|
13
|
+
from .session import SessionState
|
|
14
|
+
|
|
15
|
+
__all__ = [
|
|
16
|
+
# Compliance / FERPA
|
|
17
|
+
"AuditRecord",
|
|
18
|
+
"DisclosureReason",
|
|
19
|
+
"FERPAContextPolicy",
|
|
20
|
+
"RecordCategory",
|
|
21
|
+
"StudentIdentityScope",
|
|
22
|
+
"make_enrollment_advisor_policy",
|
|
23
|
+
# Context
|
|
24
|
+
"ContextEnvelope",
|
|
25
|
+
"ContextSource",
|
|
26
|
+
# Policy
|
|
27
|
+
"ActionPolicy",
|
|
28
|
+
"EscalationRule",
|
|
29
|
+
# Session
|
|
30
|
+
"SessionState",
|
|
31
|
+
]
|