Standalone deterministic admissibility-review framework
Project description
spar-framework
Claim-aware review for systems whose outputs can pass while their claims drift.
SPAR is the framework behind that review. It checks whether an output deserves the claim attached to it, not just whether the system still produces a stable result.
SPAR is not a physics-only framework. Physics is where we proved it.
The broader product is claim-aware review:
- outputs can stay green while implementation state changes underneath
- approximations can be reported as closure
- governance labels can drift out of sync with computation
- stable scores can carry unjustified confidence
SPAR does not promise truth. It prevents unjustified confidence.
Built in physics. Applicable anywhere outputs can pass while claims drift.
| Catch claim drift | Emit maturity state | Adopt in layers |
|---|---|---|
| Detect when green outputs and attached claims no longer match. | Keep exact, approximate, partial, heuristic, and environment_conditional visible at review time. |
Start with lightweight claim checks, then grow into full Layer A/B/C review. |
Navigation:
Why This Matters •
Workflow •
Why Teams Use It •
Where It Fits •
Adoption Path •
What SPAR Provides •
Quick Start •
Architecture •
Repository Layout •
Development •
Changelog
Why This Matters
Most review systems stop at output correctness.
They ask:
- did the code run
- did the test pass
- did the score stay within bounds
SPAR asks a harder question:
- does the claim still deserve to stand
That distinction matters in real systems:
- a patch can pass tests while overstating completeness
- an analytics dashboard can stay green while the interpretation becomes stale
- a model score can remain reproducible while its maturity state changes
- a scientific result can stay numerically stable while the justification weakens
This is the gap SPAR is built to review.
Workflow
flowchart LR
A[System Output] --> B[Claim Attached to Output]
B --> C[Ordinary Review<br/>Tests · Regression · Score Bounds]
C --> D[Green Result]
B --> E[SPAR Review<br/>Claim-Aware Review]
E --> F[Layer A<br/>Anchor Consistency]
E --> G[Layer B<br/>Interpretation Validity]
E --> H[Layer C<br/>Existence and Maturity]
F --> I[Registry-Backed Review Surface]
G --> I
H --> I
I --> J{Verdict}
J --> K[Accept]
J --> L[Warn]
J --> M[Reclassify]
J --> N[Reject]
Ordinary review asks whether the system still passes. SPAR asks whether the claim deserves to survive that pass.
Why Teams Use It
Keep green outputs honest
When CI stays green but implementation and claim drift apart, SPAR gives teams
a review layer that can force a warning, downgrade, or reclassification before
false confidence becomes policy or product language.
Attach maturity to results
SPAR keeps exact, approximate, partial, heuristic, and environment-conditional
states visible at review time. That matters for model governance, regulated
pipelines, scientific systems, and any workflow where reproducibility is not
enough.
Adopt it in layers
Teams do not need the full framework on day one. A lightweight claim check, a
small maturity registry, and a full Layer A/B/C review path can be introduced
as separate maturity levels.
Where It Fits
SPAR is not a generic linter, not a theorem prover, and not an LLM judge.
It is a deterministic review framework for one specific problem:
checking whether outputs deserve the claims attached to them.
That makes it useful above ordinary regression and below broad governance prose. It gives teams a structured way to ask what a result is claiming, what implementation state produced it, and what maturity state must travel with it.
Adoption Path
Do not start with the full framework unless you already need it.
Level 1 — Claim Check
Add three explicit review questions to an existing workflow:
- What is the output actually claiming?
- Does that claim match the implementation state?
- Is this result exact, approximate, partial, or heuristic?
This is the lightest entry point. Most teams can do this immediately.
Level 2 — Maturity Labels
Add a simple registry and attach state labels to results:
heuristicpartialclosedenvironment_conditional
This is already a meaningful step beyond ordinary review.
Level 3 — Full SPAR
Use the full framework:
- Layer A — anchor consistency
- Layer B — interpretation validity
- Layer C — existence and maturity probes
- registry-backed snapshots
- explicit score and verdict policy
This repository currently exposes that full path for the first physics adapter.
What SPAR Provides
Generic review kernel
Explicit score and verdict policy for deterministic claim-aware review.
Registry-backed runtime surface
Maturity and gap snapshots travel with the review result instead of living only
in prose.
Adapter boundary for real domains
Layer A / B / C logic stays domain-owned. This repository already includes a
working physics adapter as the first proof case.
What SPAR Does Not Provide
- a universal truth engine
- free-form LLM judging in the core
- TOE API/router integration inside the framework package
- domain contracts inside the generic kernel
Quick Start
pip install -e .[dev]
from spar_framework.engine import run_review
from spar_domain_physics.runtime import get_review_runtime
runtime = get_review_runtime()
result = run_review(
runtime=runtime,
subject={
"beta_G_norm": 0.0,
"beta_B_norm": 0.0,
"beta_Phi_norm": 0.0,
"sidrce_omega": 1.0,
"eft_m_kk_gev": 1.0e16,
"ricci_norm": 0.02,
},
source="flat minkowski",
gate="PASS",
report_text="Bounded report text.",
)
print(result.verdict)
print(result.score)
print(result.model_registry_snapshot["total_models"])
Architecture
SPAR separates claim-aware review into three layers.
Layer A — Anchor Consistency
Checks whether output agrees with a declared analytical or contractual anchor.
Layer B — Interpretation Validity
Checks whether report language and declared scope stay within what the implementation state justifies.
Layer C — Existence and Maturity Probes
Checks what kind of implementation produced the result:
- genuine
- approximate
- gapped
- environment-conditional
- research-only
The core package stays domain-agnostic. Domain adapters provide anchors, contracts, and maturity logic.
Why Physics Comes First
Physics is the first adapter because it gives the framework a hard proof case.
It is where the distinction between:
- stable output
- justified claim
- declared maturity
can be made explicit enough to test rigorously.
That does not make SPAR physics-only.
It means the framework first proved itself in a domain where claim drift is visible and costly.
Repository Layout
src/spar_framework/- generic review kernel
- result types
- scoring policy
- registry model
src/spar_domain_physics/- first domain adapter
- registry seeds
- analytical anchors
- Layer A / B / C implementations
tests/docs/mica.yamlmemory/
Start Here
docs/ARCHITECTURE.mddocs/EXTRACTION_MAP.mdsrc/spar_framework/engine.pysrc/spar_domain_physics/runtime.pymemory/spar-framework-playbook.v1.0.0.md
Development
python -m pytest -q
python -m build
Status
Current state:
- standalone package scaffold complete
- generic kernel extracted
- first physics adapter extracted
- TOE integration already consuming the framework runtime
This means the project is no longer only an extraction target. It is already a working standalone framework with one concrete domain adapter.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spar_framework-0.1.1.tar.gz.
File metadata
- Download URL: spar_framework-0.1.1.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1f26e4e1169ddaa5c7d0d8f9ef5ac438de33fd02fe12c5f3c3145c0c4fe7bae
|
|
| MD5 |
c44c8ffa9581daed19b9111a187ad391
|
|
| BLAKE2b-256 |
dce31e6f352a3b2e93660ba958127d646d4b6316a1629b11bc8a377d6b0fc3ed
|
Provenance
The following attestation bundles were made for spar_framework-0.1.1.tar.gz:
Publisher:
publish.yml on flamehaven01/SPAR-Framework
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spar_framework-0.1.1.tar.gz -
Subject digest:
e1f26e4e1169ddaa5c7d0d8f9ef5ac438de33fd02fe12c5f3c3145c0c4fe7bae - Sigstore transparency entry: 1280488095
- Sigstore integration time:
-
Permalink:
flamehaven01/SPAR-Framework@477c19d1abee4bcdb9dee98a81041b907279c2ed -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/flamehaven01
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@477c19d1abee4bcdb9dee98a81041b907279c2ed -
Trigger Event:
push
-
Statement type:
File details
Details for the file spar_framework-0.1.1-py3-none-any.whl.
File metadata
- Download URL: spar_framework-0.1.1-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5aaf15c40d84624255f642c838b7f6b99ea795211c9b938246451cb26c31d635
|
|
| MD5 |
d251b61d024577ad281f2638d0b07359
|
|
| BLAKE2b-256 |
65960c4de70f93d3495434de80674d6d3b0dc7630455bb147e0f18fabfb145f9
|
Provenance
The following attestation bundles were made for spar_framework-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on flamehaven01/SPAR-Framework
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spar_framework-0.1.1-py3-none-any.whl -
Subject digest:
5aaf15c40d84624255f642c838b7f6b99ea795211c9b938246451cb26c31d635 - Sigstore transparency entry: 1280488097
- Sigstore integration time:
-
Permalink:
flamehaven01/SPAR-Framework@477c19d1abee4bcdb9dee98a81041b907279c2ed -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/flamehaven01
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@477c19d1abee4bcdb9dee98a81041b907279c2ed -
Trigger Event:
push
-
Statement type: