You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0824936
Browse filesBrowse the repository at this point in the historyBrowse files
dependencies = Python standard library + existing PROVENANCE modules
849
+
```
850
+
851
+
It retains the exact request bytes prepared by the adapter before transport and retains any HTTP response body bytes before parsing.
852
+
853
+
The transport boundary is enforced by an adapter-owned urllib opener with environment proxies disabled and redirects rejected. The documented localhost spelling is canonicalized to a literal loopback address to avoid DNS.
854
+
855
+
Prepared request evidence does not independently prove peer receipt. Transport and parse failures are recorded with COLLECTION_FAILED events and finalized evidence rather than silently disappearing.
856
+
857
+
Phase 5 uses one fresh evidence store/custody pair per exchange. Each unique evidence root is reserved with a same-process mutex plus a POSIX fcntl advisory record lock on an operational .ollama-observation.lock file. Roots are acquired in stable filesystem-identity order, and the reservation is held across freshness validation through complete observation/failure finalization. Freshness is re-read from disk after acquiring the reservation. This prevents concurrent threads, adapter instances, or cooperating processes that share either evidence root from both passing the freshness gate, and prevents deterministic event identities from collapsing repeated byte-identical calls until the core has an evidence-supported occurrence discriminator.
858
+
859
+
Adapter-retained HTTP payload bytes use one role-neutral artifact media type. Transport role is represented by events/custody so identical bytes can legitimately appear as both prepared request and observed response without rebinding content identity metadata.
860
+
861
+
Every finalized failure binds a canonical failure-detail artifact containing a stable adapter category, optional observed HTTP status, and diagnostic detail. Zero-length observed HTTP bodies remain distinct from no observed body.
862
+
863
+
The response model field is treated as a declaration by Ollama. It is not promoted into independently verified model provenance, and it is not used as the custody actor.
864
+
865
+
Capture times are expressed through custody observations rather than by adding provider-specific timestamp fields to the universal event core.
866
+
840
867
The Ollama adapter exists primarily to test the evidence architecture.
841
868
842
869
It must not define AI provenance semantics for every other provider.
843
870
871
+
Ollama's OpenAI-compatible endpoints are intentionally not used to redefine Phase 5. OpenAI-compatible HTTP remains a later generic interoperability surface behind the adapter boundary.
872
+
844
873
---
845
874
846
875
# 18. Ollama CI Contract
847
876
877
+
The initial real-model lane uses a GitHub Actions matrix with separate clean runners. Each matrix job starts its own Ollama server and pulls one small reference model.
878
+
879
+
Current reference matrix:
880
+
881
+
```text
882
+
qwen2.5:0.5b
883
+
qwen2:0.5b
884
+
```
885
+
886
+
The Ollama runtime is version-pinned in the workflow and its downloaded installer script is checksum-verified before execution.
887
+
848
888
A real inference test should verify the chain rather than exact generated language.
849
889
850
890
Example flow:
@@ -870,8 +910,9 @@ VERIFY
870
910
Assertions should cover:
871
911
872
912
```text
873
-
request retained or intentionally omitted
874
-
response retained
913
+
prepared request retained
914
+
successful or error response bytes retained when observed
915
+
failure evidence finalized on transport/parse failure
0 commit comments