vincio 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.
- vincio-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +41 -0
- vincio-0.1.0/.github/ISSUE_TEMPLATE/config.yml +8 -0
- vincio-0.1.0/.github/ISSUE_TEMPLATE/feature_request.yml +22 -0
- vincio-0.1.0/.github/PULL_REQUEST_TEMPLATE.md +18 -0
- vincio-0.1.0/.github/dependabot.yml +13 -0
- vincio-0.1.0/.github/workflows/ci.yml +60 -0
- vincio-0.1.0/.github/workflows/release.yml +46 -0
- vincio-0.1.0/.gitignore +22 -0
- vincio-0.1.0/AGENTS.md +56 -0
- vincio-0.1.0/CHANGELOG.md +32 -0
- vincio-0.1.0/CODE_OF_CONDUCT.md +32 -0
- vincio-0.1.0/CONTRIBUTING.md +53 -0
- vincio-0.1.0/LICENSE +201 -0
- vincio-0.1.0/PKG-INFO +607 -0
- vincio-0.1.0/README.md +318 -0
- vincio-0.1.0/ROADMAP.md +171 -0
- vincio-0.1.0/SECURITY.md +20 -0
- vincio-0.1.0/assets/banner.svg +42 -0
- vincio-0.1.0/assets/logo.svg +40 -0
- vincio-0.1.0/benchmarks/README.md +33 -0
- vincio-0.1.0/benchmarks/vinciobench.py +414 -0
- vincio-0.1.0/docs/comparisons/dspy.md +22 -0
- vincio-0.1.0/docs/comparisons/langchain.md +27 -0
- vincio-0.1.0/docs/comparisons/llamaindex.md +23 -0
- vincio-0.1.0/docs/comparisons/ragas.md +22 -0
- vincio-0.1.0/docs/concepts/agents.md +52 -0
- vincio-0.1.0/docs/concepts/context-packets.md +70 -0
- vincio-0.1.0/docs/concepts/evals.md +55 -0
- vincio-0.1.0/docs/concepts/memory.md +52 -0
- vincio-0.1.0/docs/concepts/prompt-compiler.md +63 -0
- vincio-0.1.0/docs/concepts/retrieval.md +47 -0
- vincio-0.1.0/docs/getting-started.md +103 -0
- vincio-0.1.0/docs/guides/add-tools.md +72 -0
- vincio-0.1.0/docs/guides/build-rag-app.md +63 -0
- vincio-0.1.0/docs/guides/optimize-context.md +66 -0
- vincio-0.1.0/docs/guides/run-evals.md +58 -0
- vincio-0.1.0/docs/guides/structured-output.md +65 -0
- vincio-0.1.0/docs/reference/api.md +56 -0
- vincio-0.1.0/docs/reference/cli.md +39 -0
- vincio-0.1.0/docs/reference/config.md +101 -0
- vincio-0.1.0/examples/01_support_triage.py +30 -0
- vincio-0.1.0/examples/02_document_qa.py +26 -0
- vincio-0.1.0/examples/03_contract_review.py +78 -0
- vincio-0.1.0/examples/04_invoice_extraction.py +43 -0
- vincio-0.1.0/examples/05_research_agent.py +35 -0
- vincio-0.1.0/examples/06_crm_agent.py +63 -0
- vincio-0.1.0/examples/07_codebase_qa.py +39 -0
- vincio-0.1.0/examples/08_spreadsheet_analysis.py +33 -0
- vincio-0.1.0/examples/09_eval_pipeline.py +44 -0
- vincio-0.1.0/examples/10_optimization_run.py +68 -0
- vincio-0.1.0/examples/README.md +27 -0
- vincio-0.1.0/examples/_shared.py +57 -0
- vincio-0.1.0/llms.txt +56 -0
- vincio-0.1.0/pyproject.toml +88 -0
- vincio-0.1.0/tests/conftest.py +109 -0
- vincio-0.1.0/tests/golden/docs_qa.jsonl +4 -0
- vincio-0.1.0/tests/golden/extraction.jsonl +3 -0
- vincio-0.1.0/tests/golden/support_triage.jsonl +4 -0
- vincio-0.1.0/tests/test_agents_workflows.py +229 -0
- vincio-0.1.0/tests/test_context.py +170 -0
- vincio-0.1.0/tests/test_evals_optimize.py +266 -0
- vincio-0.1.0/tests/test_infra.py +288 -0
- vincio-0.1.0/tests/test_input_documents.py +177 -0
- vincio-0.1.0/tests/test_integration.py +284 -0
- vincio-0.1.0/tests/test_memory.py +156 -0
- vincio-0.1.0/tests/test_output.py +106 -0
- vincio-0.1.0/tests/test_prompts.py +179 -0
- vincio-0.1.0/tests/test_retrieval.py +177 -0
- vincio-0.1.0/tests/test_tools_security.py +226 -0
- vincio-0.1.0/vincio/__init__.py +54 -0
- vincio-0.1.0/vincio/agents/__init__.py +21 -0
- vincio-0.1.0/vincio/agents/dag.py +87 -0
- vincio-0.1.0/vincio/agents/executor.py +468 -0
- vincio-0.1.0/vincio/agents/handoffs.py +110 -0
- vincio-0.1.0/vincio/agents/planner.py +206 -0
- vincio-0.1.0/vincio/agents/state.py +94 -0
- vincio-0.1.0/vincio/caching/__init__.py +23 -0
- vincio-0.1.0/vincio/caching/base.py +180 -0
- vincio-0.1.0/vincio/caching/invalidation.py +80 -0
- vincio-0.1.0/vincio/caching/layers.py +181 -0
- vincio-0.1.0/vincio/cli/__init__.py +5 -0
- vincio-0.1.0/vincio/cli/main.py +503 -0
- vincio-0.1.0/vincio/context/__init__.py +45 -0
- vincio-0.1.0/vincio/context/budgeting.py +198 -0
- vincio-0.1.0/vincio/context/compiler.py +510 -0
- vincio-0.1.0/vincio/context/compression.py +178 -0
- vincio-0.1.0/vincio/context/ir.py +87 -0
- vincio-0.1.0/vincio/context/packet.py +96 -0
- vincio-0.1.0/vincio/context/scoring.py +254 -0
- vincio-0.1.0/vincio/core/__init__.py +92 -0
- vincio-0.1.0/vincio/core/app.py +716 -0
- vincio-0.1.0/vincio/core/config.py +220 -0
- vincio-0.1.0/vincio/core/errors.py +402 -0
- vincio-0.1.0/vincio/core/events.py +106 -0
- vincio-0.1.0/vincio/core/runtime.py +396 -0
- vincio-0.1.0/vincio/core/tokens.py +78 -0
- vincio-0.1.0/vincio/core/types.py +640 -0
- vincio-0.1.0/vincio/core/utils.py +76 -0
- vincio-0.1.0/vincio/documents/__init__.py +49 -0
- vincio-0.1.0/vincio/documents/loaders.py +346 -0
- vincio-0.1.0/vincio/documents/multimodal.py +122 -0
- vincio-0.1.0/vincio/documents/ocr.py +88 -0
- vincio-0.1.0/vincio/documents/parsers.py +300 -0
- vincio-0.1.0/vincio/evals/__init__.py +28 -0
- vincio-0.1.0/vincio/evals/datasets.py +104 -0
- vincio-0.1.0/vincio/evals/judges.py +161 -0
- vincio-0.1.0/vincio/evals/metrics.py +369 -0
- vincio-0.1.0/vincio/evals/reports.py +225 -0
- vincio-0.1.0/vincio/evals/runners.py +123 -0
- vincio-0.1.0/vincio/input/__init__.py +23 -0
- vincio-0.1.0/vincio/input/classifiers.py +163 -0
- vincio-0.1.0/vincio/input/normalizers.py +93 -0
- vincio-0.1.0/vincio/input/routers.py +130 -0
- vincio-0.1.0/vincio/memory/__init__.py +35 -0
- vincio-0.1.0/vincio/memory/engine.py +327 -0
- vincio-0.1.0/vincio/memory/graph.py +142 -0
- vincio-0.1.0/vincio/memory/policies.py +206 -0
- vincio-0.1.0/vincio/memory/stores.py +187 -0
- vincio-0.1.0/vincio/memory/summarizers.py +147 -0
- vincio-0.1.0/vincio/observability/__init__.py +50 -0
- vincio-0.1.0/vincio/observability/costs.py +122 -0
- vincio-0.1.0/vincio/observability/exporters.py +140 -0
- vincio-0.1.0/vincio/observability/otel.py +87 -0
- vincio-0.1.0/vincio/observability/spans.py +114 -0
- vincio-0.1.0/vincio/observability/traces.py +217 -0
- vincio-0.1.0/vincio/optimize/__init__.py +40 -0
- vincio-0.1.0/vincio/optimize/cache_tuning.py +133 -0
- vincio-0.1.0/vincio/optimize/context_search.py +108 -0
- vincio-0.1.0/vincio/optimize/prompt_search.py +98 -0
- vincio-0.1.0/vincio/optimize/routing.py +179 -0
- vincio-0.1.0/vincio/optimize/search.py +182 -0
- vincio-0.1.0/vincio/output/__init__.py +30 -0
- vincio-0.1.0/vincio/output/parsers.py +185 -0
- vincio-0.1.0/vincio/output/repair.py +175 -0
- vincio-0.1.0/vincio/output/schemas.py +136 -0
- vincio-0.1.0/vincio/output/validators.py +212 -0
- vincio-0.1.0/vincio/prompts/__init__.py +58 -0
- vincio-0.1.0/vincio/prompts/ast.py +158 -0
- vincio-0.1.0/vincio/prompts/compiler.py +311 -0
- vincio-0.1.0/vincio/prompts/lint.py +219 -0
- vincio-0.1.0/vincio/prompts/optimizers.py +112 -0
- vincio-0.1.0/vincio/prompts/templates.py +194 -0
- vincio-0.1.0/vincio/providers/__init__.py +77 -0
- vincio-0.1.0/vincio/providers/anthropic.py +326 -0
- vincio-0.1.0/vincio/providers/base.py +359 -0
- vincio-0.1.0/vincio/providers/google.py +276 -0
- vincio-0.1.0/vincio/providers/local.py +48 -0
- vincio-0.1.0/vincio/providers/mistral.py +41 -0
- vincio-0.1.0/vincio/providers/mock.py +208 -0
- vincio-0.1.0/vincio/providers/openai.py +277 -0
- vincio-0.1.0/vincio/retrieval/__init__.py +50 -0
- vincio-0.1.0/vincio/retrieval/chunking.py +289 -0
- vincio-0.1.0/vincio/retrieval/embeddings.py +117 -0
- vincio-0.1.0/vincio/retrieval/engine.py +254 -0
- vincio-0.1.0/vincio/retrieval/graph_retrieval.py +154 -0
- vincio-0.1.0/vincio/retrieval/indexes.py +196 -0
- vincio-0.1.0/vincio/retrieval/reasoning_retrieval.py +130 -0
- vincio-0.1.0/vincio/retrieval/rerankers.py +219 -0
- vincio-0.1.0/vincio/security/__init__.py +32 -0
- vincio-0.1.0/vincio/security/access.py +164 -0
- vincio-0.1.0/vincio/security/audit.py +159 -0
- vincio-0.1.0/vincio/security/injection.py +146 -0
- vincio-0.1.0/vincio/security/pii.py +201 -0
- vincio-0.1.0/vincio/security/policy.py +156 -0
- vincio-0.1.0/vincio/security/secrets.py +148 -0
- vincio-0.1.0/vincio/server/__init__.py +5 -0
- vincio-0.1.0/vincio/server/app.py +271 -0
- vincio-0.1.0/vincio/server/auth.py +109 -0
- vincio-0.1.0/vincio/storage/__init__.py +26 -0
- vincio-0.1.0/vincio/storage/base.py +140 -0
- vincio-0.1.0/vincio/storage/duckdb.py +90 -0
- vincio-0.1.0/vincio/storage/neo4j.py +87 -0
- vincio-0.1.0/vincio/storage/postgres.py +174 -0
- vincio-0.1.0/vincio/storage/qdrant.py +92 -0
- vincio-0.1.0/vincio/storage/redis.py +80 -0
- vincio-0.1.0/vincio/storage/sqlite.py +167 -0
- vincio-0.1.0/vincio/tools/__init__.py +19 -0
- vincio-0.1.0/vincio/tools/permissions.py +131 -0
- vincio-0.1.0/vincio/tools/registry.py +181 -0
- vincio-0.1.0/vincio/tools/runtime.py +294 -0
- vincio-0.1.0/vincio/tools/sandbox.py +108 -0
- vincio-0.1.0/vincio/workflows/__init__.py +5 -0
- vincio-0.1.0/vincio/workflows/engine.py +311 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Report a problem with Vincio
|
|
3
|
+
labels: ["bug"]
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: Thanks for taking the time to file a bug report!
|
|
8
|
+
- type: textarea
|
|
9
|
+
id: what-happened
|
|
10
|
+
attributes:
|
|
11
|
+
label: What happened?
|
|
12
|
+
description: A clear description of the bug, including what you expected to happen.
|
|
13
|
+
validations:
|
|
14
|
+
required: true
|
|
15
|
+
- type: textarea
|
|
16
|
+
id: repro
|
|
17
|
+
attributes:
|
|
18
|
+
label: Steps to reproduce
|
|
19
|
+
description: A minimal code snippet or steps that reproduce the issue.
|
|
20
|
+
render: python
|
|
21
|
+
validations:
|
|
22
|
+
required: true
|
|
23
|
+
- type: input
|
|
24
|
+
id: version
|
|
25
|
+
attributes:
|
|
26
|
+
label: Vincio version
|
|
27
|
+
placeholder: "0.1.0"
|
|
28
|
+
validations:
|
|
29
|
+
required: true
|
|
30
|
+
- type: input
|
|
31
|
+
id: python
|
|
32
|
+
attributes:
|
|
33
|
+
label: Python version
|
|
34
|
+
placeholder: "3.12"
|
|
35
|
+
validations:
|
|
36
|
+
required: true
|
|
37
|
+
- type: textarea
|
|
38
|
+
id: extras
|
|
39
|
+
attributes:
|
|
40
|
+
label: Installed extras / environment
|
|
41
|
+
description: e.g. `vincio[all]`, OS, provider in use.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
blank_issues_enabled: false
|
|
2
|
+
contact_links:
|
|
3
|
+
- name: Question or discussion
|
|
4
|
+
url: https://github.com/Ohswedd/vincio/discussions
|
|
5
|
+
about: Ask questions and discuss ideas with the community.
|
|
6
|
+
- name: Security vulnerability
|
|
7
|
+
url: https://github.com/Ohswedd/vincio/security/advisories/new
|
|
8
|
+
about: Report security issues privately (see SECURITY.md).
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: Suggest an idea or improvement for Vincio
|
|
3
|
+
labels: ["enhancement"]
|
|
4
|
+
body:
|
|
5
|
+
- type: textarea
|
|
6
|
+
id: problem
|
|
7
|
+
attributes:
|
|
8
|
+
label: Problem / motivation
|
|
9
|
+
description: What are you trying to do, and what makes it hard today?
|
|
10
|
+
validations:
|
|
11
|
+
required: true
|
|
12
|
+
- type: textarea
|
|
13
|
+
id: proposal
|
|
14
|
+
attributes:
|
|
15
|
+
label: Proposed solution
|
|
16
|
+
description: What would you like Vincio to do?
|
|
17
|
+
validations:
|
|
18
|
+
required: true
|
|
19
|
+
- type: textarea
|
|
20
|
+
id: alternatives
|
|
21
|
+
attributes:
|
|
22
|
+
label: Alternatives considered
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Summary
|
|
2
|
+
|
|
3
|
+
<!-- What does this PR change, and why? -->
|
|
4
|
+
|
|
5
|
+
## Changes
|
|
6
|
+
|
|
7
|
+
<!-- Bullet the notable changes. -->
|
|
8
|
+
|
|
9
|
+
## Checklist
|
|
10
|
+
|
|
11
|
+
- [ ] `ruff check vincio/ tests/` passes
|
|
12
|
+
- [ ] `pytest -q` passes (offline)
|
|
13
|
+
- [ ] Added/updated tests for the change
|
|
14
|
+
- [ ] Updated docs / `ROADMAP.md` / `CHANGELOG.md` as needed
|
|
15
|
+
|
|
16
|
+
## Related issues
|
|
17
|
+
|
|
18
|
+
<!-- e.g. Closes #123 -->
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
- package-ecosystem: pip
|
|
4
|
+
directory: "/"
|
|
5
|
+
schedule:
|
|
6
|
+
interval: weekly
|
|
7
|
+
open-pull-requests-limit: 5
|
|
8
|
+
labels: ["dependencies"]
|
|
9
|
+
- package-ecosystem: github-actions
|
|
10
|
+
directory: "/"
|
|
11
|
+
schedule:
|
|
12
|
+
interval: weekly
|
|
13
|
+
labels: ["dependencies", "ci"]
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: ci-${{ github.ref }}
|
|
14
|
+
cancel-in-progress: true
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
lint:
|
|
18
|
+
name: Lint (ruff)
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
- uses: actions/setup-python@v5
|
|
23
|
+
with:
|
|
24
|
+
python-version: "3.12"
|
|
25
|
+
cache: pip
|
|
26
|
+
- run: python -m pip install --upgrade pip
|
|
27
|
+
- run: pip install -e ".[dev]"
|
|
28
|
+
- name: ruff
|
|
29
|
+
run: ruff check vincio/ tests/
|
|
30
|
+
|
|
31
|
+
test:
|
|
32
|
+
name: Test (py${{ matrix.python-version }})
|
|
33
|
+
runs-on: ubuntu-latest
|
|
34
|
+
strategy:
|
|
35
|
+
fail-fast: false
|
|
36
|
+
matrix:
|
|
37
|
+
python-version: ["3.11", "3.12", "3.13"]
|
|
38
|
+
steps:
|
|
39
|
+
- uses: actions/checkout@v4
|
|
40
|
+
- uses: actions/setup-python@v5
|
|
41
|
+
with:
|
|
42
|
+
python-version: ${{ matrix.python-version }}
|
|
43
|
+
cache: pip
|
|
44
|
+
- run: python -m pip install --upgrade pip
|
|
45
|
+
- run: pip install -e ".[dev]"
|
|
46
|
+
- name: pytest (offline suite)
|
|
47
|
+
run: pytest -q
|
|
48
|
+
|
|
49
|
+
build:
|
|
50
|
+
name: Build & check package
|
|
51
|
+
runs-on: ubuntu-latest
|
|
52
|
+
steps:
|
|
53
|
+
- uses: actions/checkout@v4
|
|
54
|
+
- uses: actions/setup-python@v5
|
|
55
|
+
with:
|
|
56
|
+
python-version: "3.12"
|
|
57
|
+
cache: pip
|
|
58
|
+
- run: python -m pip install --upgrade pip build twine
|
|
59
|
+
- run: python -m build
|
|
60
|
+
- run: python -m twine check dist/*
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
# Publishes Vincio to PyPI via OIDC Trusted Publishing.
|
|
4
|
+
# Triggered when a GitHub Release is published (e.g. `gh release create vX.Y.Z`).
|
|
5
|
+
on:
|
|
6
|
+
release:
|
|
7
|
+
types: [published]
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
name: Build distributions
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
- uses: actions/setup-python@v5
|
|
19
|
+
with:
|
|
20
|
+
python-version: "3.12"
|
|
21
|
+
- run: python -m pip install --upgrade pip build twine
|
|
22
|
+
- name: Build sdist and wheel
|
|
23
|
+
run: python -m build
|
|
24
|
+
- name: Check metadata
|
|
25
|
+
run: python -m twine check dist/*
|
|
26
|
+
- uses: actions/upload-artifact@v4
|
|
27
|
+
with:
|
|
28
|
+
name: dist
|
|
29
|
+
path: dist/
|
|
30
|
+
|
|
31
|
+
publish:
|
|
32
|
+
name: Publish to PyPI
|
|
33
|
+
needs: build
|
|
34
|
+
runs-on: ubuntu-latest
|
|
35
|
+
environment:
|
|
36
|
+
name: pypi
|
|
37
|
+
url: https://pypi.org/project/vincio/
|
|
38
|
+
permissions:
|
|
39
|
+
id-token: write # required for Trusted Publishing (OIDC)
|
|
40
|
+
steps:
|
|
41
|
+
- uses: actions/download-artifact@v4
|
|
42
|
+
with:
|
|
43
|
+
name: dist
|
|
44
|
+
path: dist/
|
|
45
|
+
- name: Publish
|
|
46
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
vincio-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.py[cod]
|
|
3
|
+
*.egg-info/
|
|
4
|
+
.venv/
|
|
5
|
+
venv/
|
|
6
|
+
dist/
|
|
7
|
+
build/
|
|
8
|
+
.pytest_cache/
|
|
9
|
+
.mypy_cache/
|
|
10
|
+
.ruff_cache/
|
|
11
|
+
.DS_Store
|
|
12
|
+
*.db
|
|
13
|
+
*.duckdb
|
|
14
|
+
.vincio/
|
|
15
|
+
traces/
|
|
16
|
+
.coverage
|
|
17
|
+
htmlcov/
|
|
18
|
+
dist/
|
|
19
|
+
benchmarks/results/
|
|
20
|
+
|
|
21
|
+
# Internal spec — not distributed
|
|
22
|
+
PRD.md
|
vincio-0.1.0/AGENTS.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# AGENTS.md — working on the Vincio codebase
|
|
2
|
+
|
|
3
|
+
## What this is
|
|
4
|
+
|
|
5
|
+
Vincio (`vincio/`) is a context engineering platform: it compiles prompts,
|
|
6
|
+
memory, retrieval, tools, schemas, and policies into budgeted, validated,
|
|
7
|
+
traced context packets. Build status and the roadmap live in `ROADMAP.md`.
|
|
8
|
+
|
|
9
|
+
## Layout
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
vincio/core types, errors, events, config, tokens, ContextApp, 17-step runtime
|
|
13
|
+
vincio/prompts PromptSpec, AST, compiler (cache-aware), lint, variants
|
|
14
|
+
vincio/context ContextIR/Packet, scoring, budgeting, compression, compiler
|
|
15
|
+
vincio/input normalization, language/task classification, routing
|
|
16
|
+
vincio/documents loaders (md/html/csv/pdf/docx/xlsx/eml/code), parsers, OCR, multimodal
|
|
17
|
+
vincio/retrieval chunkers, embeddings, BM25/vector indexes, hybrid RRF, rerankers, graph, reasoning
|
|
18
|
+
vincio/memory engine (L0–L5), write policy, decay, conflicts, graph, summarizers
|
|
19
|
+
vincio/tools registry, permissioned runtime, sandbox
|
|
20
|
+
vincio/agents bounded DAG executor, planners, ReAct, handoffs
|
|
21
|
+
vincio/workflows deterministic DAG workflows (retries/compensation/approvals)
|
|
22
|
+
vincio/output schemas, robust parsers, validation pipeline, principled repair
|
|
23
|
+
vincio/evals datasets, metrics, judges, runner, gates, reports
|
|
24
|
+
vincio/optimize fitness, evolution loop, prompt/context/routing/cache optimization
|
|
25
|
+
vincio/observability traces/spans, JSONL/OTel exporters, cost tracking
|
|
26
|
+
vincio/security PII/secrets, injection defense, RBAC/ABAC, policy engine, audit
|
|
27
|
+
vincio/caching LRU/SQLite backends, response/retrieval/packet/semantic caches, invalidation
|
|
28
|
+
vincio/storage metadata stores (memory/sqlite/postgres), qdrant/neo4j/redis/duckdb adapters
|
|
29
|
+
vincio/providers openai/anthropic/google/mistral/local over httpx + deterministic mock
|
|
30
|
+
vincio/server FastAPI app (API key + JWT auth)
|
|
31
|
+
vincio/cli argparse CLI
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Commands
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
.venv/bin/pip install -e ".[dev]" # setup
|
|
38
|
+
.venv/bin/python -m pytest tests/ -q # full suite (offline, ~2s, must stay green)
|
|
39
|
+
.venv/bin/ruff check vincio/ tests/ # lint
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Rules
|
|
43
|
+
|
|
44
|
+
- **Offline-first tests**: everything must pass with no network/API keys —
|
|
45
|
+
use `MockProvider` (it generates schema-valid structured output).
|
|
46
|
+
- **Optional dependencies import lazily** inside functions/constructors with
|
|
47
|
+
a helpful `pip install "vincio[extra]"` error. Core deps are only
|
|
48
|
+
pydantic, httpx, typing-extensions, pyyaml.
|
|
49
|
+
- **Every public data contract is a Pydantic v2 model**; engines are
|
|
50
|
+
async-first with sync wrappers via `vincio.providers.base.run_sync`.
|
|
51
|
+
- **Security is deterministic** — never gate a security decision on model
|
|
52
|
+
output. Policy/permission checks happen in code before execution.
|
|
53
|
+
- **Repair never touches facts** — output repair fixes structure only.
|
|
54
|
+
- **Every run must produce a trace**; spans nest via contextvars
|
|
55
|
+
(`app.tracer.span(name, type=...)`).
|
|
56
|
+
- Update `ROADMAP.md` when adding subsystems or changing release status.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to Vincio are documented here. The format is based on
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project
|
|
5
|
+
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
|
+
|
|
7
|
+
## [0.1.0] - 2026-06-12
|
|
8
|
+
|
|
9
|
+
Initial public release.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **Prompt engine** — typed `PromptSpec`, AST, cache-aware compiler, linter, variant generation.
|
|
14
|
+
- **Context compiler** — candidate scoring, token budgeting, compression/distillation, evidence
|
|
15
|
+
ledger, and excluded-candidate reports.
|
|
16
|
+
- **Engines** — input (normalization, classification, routing), documents (loaders, parsers, OCR,
|
|
17
|
+
multimodal), retrieval (hybrid BM25 + vector RRF, rerankers, graph, reasoning), memory (layered
|
|
18
|
+
store, decay, conflict resolution, graph), tools (permissioned runtime, sandbox), agents
|
|
19
|
+
(bounded DAG, ReAct, handoffs), workflows (deterministic DAG), and output (schemas, robust
|
|
20
|
+
parsers, validation, principled repair).
|
|
21
|
+
- **Evaluation** — datasets, metrics, judges, runner, regression gates, and reports.
|
|
22
|
+
- **Optimization** — gated prompt / context / routing / cache search.
|
|
23
|
+
- **Observability** — traces, spans, JSONL/OTel exporters, cost tracking.
|
|
24
|
+
- **Security** — PII and secret handling, prompt-injection defense, RBAC/ABAC access control,
|
|
25
|
+
deterministic policy engine, and audit logging.
|
|
26
|
+
- **Caching** — response / retrieval / packet / semantic caches with invalidation.
|
|
27
|
+
- **Storage adapters** — SQLite, Postgres (pgvector), Qdrant, Neo4j, Redis, DuckDB.
|
|
28
|
+
- **Providers** — OpenAI, Anthropic, Google, Mistral, local, and a deterministic offline mock.
|
|
29
|
+
- **Surfaces** — FastAPI server (API key + JWT auth) and an argparse CLI.
|
|
30
|
+
- 195 offline tests, 10 runnable examples, documentation, and the VincioBench benchmark suite.
|
|
31
|
+
|
|
32
|
+
[0.1.0]: https://github.com/Ohswedd/vincio/releases/tag/v0.1.0
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and maintainers pledge to make participation in the Vincio community a
|
|
6
|
+
harassment-free experience for everyone, regardless of age, body size, visible or invisible
|
|
7
|
+
disability, ethnicity, sex characteristics, gender identity and expression, level of experience,
|
|
8
|
+
education, socio-economic status, nationality, personal appearance, race, religion, or sexual
|
|
9
|
+
identity and orientation.
|
|
10
|
+
|
|
11
|
+
## Our standards
|
|
12
|
+
|
|
13
|
+
Examples of behavior that contributes to a positive environment:
|
|
14
|
+
|
|
15
|
+
- Demonstrating empathy and kindness toward other people
|
|
16
|
+
- Being respectful of differing opinions, viewpoints, and experiences
|
|
17
|
+
- Giving and gracefully accepting constructive feedback
|
|
18
|
+
- Focusing on what is best for the community
|
|
19
|
+
|
|
20
|
+
Examples of unacceptable behavior:
|
|
21
|
+
|
|
22
|
+
- Harassment, insulting or derogatory comments, and personal or political attacks
|
|
23
|
+
- Publishing others' private information without explicit permission
|
|
24
|
+
- Other conduct which could reasonably be considered inappropriate in a professional setting
|
|
25
|
+
|
|
26
|
+
## Enforcement
|
|
27
|
+
|
|
28
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the project
|
|
29
|
+
maintainers. All complaints will be reviewed and investigated promptly and fairly.
|
|
30
|
+
|
|
31
|
+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org),
|
|
32
|
+
version 2.1.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Contributing to Vincio
|
|
2
|
+
|
|
3
|
+
Thanks for your interest in improving Vincio! This guide covers the basics.
|
|
4
|
+
|
|
5
|
+
## Development setup
|
|
6
|
+
|
|
7
|
+
Vincio targets Python 3.11+. Set up an editable install with the dev extras:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
python -m venv .venv
|
|
11
|
+
source .venv/bin/activate
|
|
12
|
+
pip install -e ".[dev]"
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Before you open a pull request
|
|
16
|
+
|
|
17
|
+
The full test suite runs **fully offline** (no network or API keys) using the deterministic mock
|
|
18
|
+
provider. Both of these must be green:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
ruff check vincio/ tests/ # lint
|
|
22
|
+
pytest -q # tests
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
CI runs the same checks across Python 3.11, 3.12, and 3.13, plus a package build, so it is worth
|
|
26
|
+
running them locally first.
|
|
27
|
+
|
|
28
|
+
## Project conventions
|
|
29
|
+
|
|
30
|
+
- **Offline-first tests** — everything must pass without network access or API keys. Use
|
|
31
|
+
`MockProvider`, which generates schema-valid structured output.
|
|
32
|
+
- **Optional dependencies import lazily** inside functions/constructors with a helpful
|
|
33
|
+
`pip install "vincio[extra]"` error. Core dependencies stay limited to `pydantic`, `httpx`,
|
|
34
|
+
`pyyaml`, and `typing-extensions`.
|
|
35
|
+
- **Every public data contract is a Pydantic v2 model**; engines are async-first with sync
|
|
36
|
+
wrappers.
|
|
37
|
+
- **Security is deterministic** — never gate a security decision on model output.
|
|
38
|
+
- **Every run produces a trace.**
|
|
39
|
+
- Update `ROADMAP.md` when adding subsystems or changing release status, and add a `CHANGELOG.md`
|
|
40
|
+
entry under *Unreleased* for user-visible changes.
|
|
41
|
+
|
|
42
|
+
## Commit messages & PRs
|
|
43
|
+
|
|
44
|
+
- Keep commits focused and write clear, imperative commit messages.
|
|
45
|
+
- Describe the motivation and the change in the PR body; link related issues.
|
|
46
|
+
|
|
47
|
+
## Reporting bugs & requesting features
|
|
48
|
+
|
|
49
|
+
Use the [issue templates](https://github.com/Ohswedd/vincio/issues/new/choose). For security
|
|
50
|
+
issues, please follow [SECURITY.md](SECURITY.md) instead of opening a public issue.
|
|
51
|
+
|
|
52
|
+
By contributing, you agree that your contributions are licensed under the project's
|
|
53
|
+
[Apache 2.0 License](LICENSE).
|
vincio-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
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
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 Vincio Contributors
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|