betterwithage commited on
Commit
1179aef
·
verified ·
1 Parent(s): ef312b8

docs: publish staged house card (szl-ouroboros)

Browse files

Org-wide house-style upgrade; bodies preserved; zero invented stats.

Files changed (1) hide show
  1. README.md +23 -87
README.md CHANGED
@@ -1,5 +1,4 @@
1
  ---
2
- thumbnail: https://huggingface.co/SZLHOLDINGS/szl-ouroboros/resolve/main/og-card.png
3
  tags:
4
  - doi:10.5281/zenodo.20434308
5
  - kernel
@@ -17,128 +16,65 @@ szl-governance:
17
  honest_blocked: "a measurement gap stays a gap — overheadMs is UNAVAILABLE when wall is unmeasured, never fabricated"
18
  ---
19
 
20
- <!-- SZL-ESTATE-CARD:v2:START -->
21
- <p align="center"><a href="https://a-11-oy.com/"><img src="https://huggingface.co/spaces/SZLHOLDINGS/README/resolve/main/assets/estate-banner-v2.svg" alt="SZL Holdings — governed, receipted, verifiable" width="100%"></a></p>
22
- <p align="center">
23
- <a href="https://github.com/szl-holdings/.github/tree/main/doctrine"><img src="https://img.shields.io/badge/doctrine-v11%20LOCKED-0B1F3A?style=flat-square" alt="doctrine v11"></a>
24
- <a href="https://a-11-oy.com/"><img src="https://img.shields.io/badge/evidence%20wall-LIVE%20%C2%B7%20verify%20in%20browser-3AF4C8?style=flat-square" alt="live evidence wall"></a>
25
- <a href="https://huggingface.co/datasets/SZLHOLDINGS/szl-lake"><img src="https://img.shields.io/badge/szl--lake-offline%20verifiable-C9B787?style=flat-square" alt="szl-lake offline verifiable"></a>
26
- <a href="https://huggingface.co/spaces/SZLHOLDINGS/holographic"><img src="https://img.shields.io/badge/estate%20map-holographic-5B8DEE?style=flat-square" alt="holographic estate map"></a>
27
- </p>
28
- <p align="center"><sub>Part of the <a href="https://huggingface.co/SZLHOLDINGS">SZL Holdings</a> governed estate — claims are designed to carry checkable receipts. Verification proves integrity &amp; origin, never accuracy or performance.</sub></p>
29
- <!-- SZL-ESTATE-CARD:v2:END -->
30
 
31
- <!-- SZL-ARTIFACT-NOTICE:v1:STARThonesty plate: repo semantics, no fake model tags. -->
32
- > **⬛ NOT A RUNNABLE MODEL.** This repository is a **governance kernel / artifact set** (specifications, invariants, receipts, or reference material) published under the SZL honesty doctrine. It deliberately declares **no `pipeline_tag` and no `base_model`** because none truthfully applies — you cannot load this repo into an inference pipeline, and tagging it otherwise would fake semantics. Verification of anything here proves **integrity & origin only, never accuracy or performance**. Λ = Conjecture 1 · ADVISORY.
33
- <!-- SZL-ARTIFACT-NOTICE:v1:END -->
34
 
 
 
 
 
35
 
36
- # szl-ouroboros
37
 
38
- > **Kernel Hub migration (verified 2026-07-15):** `get_kernel(...)` now resolves
39
- > the matching first-class [Kernel Hub repository](https://huggingface.co/kernels/SZLHOLDINGS/szl-ouroboros).
40
- > Its `main` and stable `v1` refs both pin verified revision
41
- > `756678f0bf096bde25054336c8e1ff78a9eb9172`. This model-type repository is
42
- > retained as the legacy source/card mirror.
43
 
44
- **The a11oy bounded agent-loop trace and its loop-tax decomposition — as a `get_kernel`-discoverable, offline, stdlib-only governance kernel.** From [SZL Holdings](https://huggingface.co/SZLHOLDINGS).
45
-
46
- > ## Honest scope box — read this first
47
- > **This is NOT a trained model. There are NO weights** (`.safetensors` / `.bin` / `.pt` / `.gguf`).
48
- > It is a **pure-Python, stdlib-only** governance kernel: an **offline replay of the live Alloy
49
- > surface** — it reconstructs the a11oy agent-loop trace and its **loop-tax** decomposition from a
50
- > run's provider-attempt windows. No network, no torch, no tensors — nothing beyond sums, max and
51
- > subtraction. `get_kernel`-discoverable purely so the SZL family loads the same way. **Λ is not
52
- > touched here and stays Conjecture 1 (open).**
53
 
54
  ## The whole point: honest MEASURED vs DERIVED labels
55
 
56
- Loop timing is easy to overclaim. This kernel labels **every** field, carrying the backbone's
57
- `LOOP_TIMING_BASIS` string verbatim:
58
 
59
  | Field | Label | Meaning |
60
  |---|---|---|
61
- | `modelMs` | **MEASURED** | Σ of every provider-attempt wall window (success AND failed hops occupied the loop) |
62
  | `peakAttemptMs` | **MEASURED** | the single slowest attempt window (peak-vs-sum) |
63
- | `overheadMs` | **DERIVED** | `max(0, wall − modelMs)` — Alloy's own orchestration, NOT pure CPU time |
64
- | `serializationTaxMs` | **DERIVED** | `max(0, modelMs − peak)` — a **COUNTERFACTUAL, never a realized saving** (the loop is strictly sequential) |
65
- | `deadHopMs` | **DERIVED** | Σ failed windows before the served hop — upper bound only, **no prefetch** |
66
  | `maxBudget` | **DECLARED** | the per-run attempt ceiling |
67
  | `exit` | **REPORTED** | `converged` / `budgetExhausted` / `aborted` / `error` |
68
- | `receiptsInEqOut` | **DOCTRINE** | one receipt trail in, one out — a doctrine invariant, **NOT a proof** |
69
 
70
- When `wall_ms=None`, `overheadMs` is honestly **None / UNAVAILABLE** — never fabricated; the
71
- peak/serialization/deadHop split still holds because it needs only the attempt windows. A wall smaller
72
- than modelMs surfaces `wallLessThanModel` (a measurement inconsistency made visible, never hidden).
73
 
74
  ## Quickstart (fully offline)
75
 
76
  ```python
77
  from kernels import get_kernel
78
-
79
  ou = get_kernel("SZLHOLDINGS/szl-ouroboros", revision="main", trust_remote_code=True)
80
-
81
  attempts = [
82
  {"provider": "sovereign", "model": "own-metal", "ok": False, "latency_ms": 220, "node": "tower"},
83
- {"provider": "sovereign", "model": "own-metal", "ok": True, "latency_ms": 900, "node": "laptop"},
84
- ]
85
  trace = ou.build_loop_trace(attempts, wall_ms=1300, exit="converged", max_budget=4)
86
  print(trace["modelMs"], trace["overheadMs"], trace["deadHopMs"]) # 1120 180 220
87
- print(ou.explain(trace["labels"])) # per-field MEASURED/DERIVED provenance
88
- print(ou.selfcheck()) # falsifiable arithmetic self-check
89
  ```
90
 
91
- `LOOP_DOCTRINE = "bounded, terminating, receipt-closed"` — the Ouroboros closes on its own tail.
92
- `withinBudget` (steps ≤ maxBudget) surfaces the bounded-loop guarantee; a violation is **reported,
93
- never clamped**. Demo runs make no model call → `modelMs / peak / deadHop` are honestly 0.
94
 
95
  ## Tests — MEASURED, local, stdlib-only
96
 
97
- ```
98
- PYTHONPATH=build/torch-universal python3 -m pytest tests/ -q
99
- 13 passed
100
- ```
101
-
102
- **13/13 passed** on a local `python3` run (MEASURED, stdlib-only). The arithmetic is falsifiable — a
103
- wrong split flips the asserts; an unmeasured wall yields `overheadMs=None` (UNAVAILABLE, not fabricated);
104
- a wall < modelMs is flagged; a missing latency **raises** (never coerced); a budget violation is surfaced.
105
 
106
  ## Provenance
107
 
108
- Mirrors the live a11oy backbone loop-tax accounting (`artifacts/api-server/src/lib/backbone.ts`
109
- `buildLoopTrace`, `sumAttemptMs`, `peakAttemptMs`, `deadHopMs`, `LOOP_DOCTRINE`, `LOOP_TIMING_BASIS`).
110
- Backed by the Lean 4 formalization [szl-holdings/lutar-lean](https://github.com/szl-holdings/lutar-lean),
111
- DOI [10.5281/zenodo.20434308](https://doi.org/10.5281/zenodo.20434308). **Λ uniqueness = Conjecture 1 (open).**
112
-
113
- ## Compatibility
114
-
115
- Python 3.9+, **standard library only** — no torch, no third-party deps.
116
 
117
  ## License
118
 
119
- Apache-2.0. Copyright 2026 SZL Holdings.
120
 
121
  ---
122
 
123
- ## The SZL honest-model trio + the kernel suite
124
-
125
- Part of the SZL Holdings honest-model trio — stdlib-only offline replays of the live Alloy surface:
126
-
127
- | Model | Lane |
128
- |---|---|
129
- | [`szl-invariants`](https://huggingface.co/SZLHOLDINGS/szl-invariants) | 8 falsifiable receipt/ledger invariants, offline |
130
- | **`szl-ouroboros`** (this repo) | **bounded-loop trace + MEASURED/DERIVED loop-tax accounting** |
131
- | [`szl-formulas`](https://huggingface.co/SZLHOLDINGS/szl-formulas) | the 21 canonical formulas with per-formula PROOF-STATUS |
132
-
133
- Anchored by the governed-kernel suite [`szl-kernels`](https://huggingface.co/SZLHOLDINGS/szl-kernels)
134
- (hub) and its members ([`szl-lambda-gate`](https://huggingface.co/SZLHOLDINGS/szl-lambda-gate),
135
- [`szl-governed-norm`](https://huggingface.co/SZLHOLDINGS/szl-governed-norm),
136
- [`governed-inference-meter`](https://huggingface.co/SZLHOLDINGS/governed-inference-meter)).
137
-
138
- **Live substrate:** [a-11-oy.com](https://a-11-oy.com) · [a11oy Space](https://huggingface.co/spaces/SZLHOLDINGS/a11oy).
139
-
140
- ---
141
-
142
- <sub><b>SZL Holdings</b> · Ouroboros = bounded, terminating, receipt-closed · modelMs/peak MEASURED, the rest DERIVED · serializationTax is a counterfactual, never a saving · Λ untouched = Conjecture 1 · <a href="https://a-11-oy.com">a-11-oy.com</a> · <a href="https://github.com/szl-holdings">github.com/szl-holdings</a> · <a href="https://huggingface.co/SZLHOLDINGS">huggingface.co/SZLHOLDINGS</a></sub>
143
-
144
- *Signed-off-by: Stephen Lutar <stephenlutar2@gmail.com>*
 
1
  ---
 
2
  tags:
3
  - doi:10.5281/zenodo.20434308
4
  - kernel
 
16
  honest_blocked: "a measurement gap stays a gap — overheadMs is UNAVAILABLE when wall is unmeasured, never fabricated"
17
  ---
18
 
19
+ <div align="center">
 
 
 
 
 
 
 
 
 
20
 
21
+ # szl-ouroborosbounded-loop trace + loop-tax decomposition, offline
 
 
22
 
23
+ [![kernel](https://img.shields.io/badge/kernel-loop--tax%20accounting-3af4c8?style=flat-square)](https://huggingface.co/kernels/SZLHOLDINGS/szl-ouroboros)
24
+ [![tests](https://img.shields.io/badge/tests-13%2F13%20MEASURED-5b8dee?style=flat-square)](https://huggingface.co/SZLHOLDINGS/szl-ouroboros)
25
+ [![Λ](https://img.shields.io/badge/%CE%9B-Conjecture%201%20%C2%B7%20advisory-d7b96b?style=flat-square)](https://a-11-oy.com)
26
+ [![license](https://img.shields.io/badge/license-apache--2.0-7e8aa3?style=flat-square)](./LICENSE)
27
 
28
+ </div>
29
 
30
+ > ** No `.safetensors`/`.bin`/`.pt`/`.gguf` governance kernel repo.** Not a trained model, NO weights. Pure-Python, **stdlib-only** offline replay of the live Alloy surface — it reconstructs the a11oy agent-loop trace and its **loop-tax** decomposition from a run's provider-attempt windows. Nothing beyond sums, max and subtraction. **Λ is not touched here and stays Conjecture 1 (open).**
 
 
 
 
31
 
32
+ > **Kernel Hub migration (verified 2026-07-15):** `get_kernel(...)` resolves the first-class [Kernel Hub repo](https://huggingface.co/kernels/SZLHOLDINGS/szl-ouroboros); `main` and `v1` pin verified revision `756678f0bf096bde25054336c8e1ff78a9eb9172`.
 
 
 
 
 
 
 
 
33
 
34
  ## The whole point: honest MEASURED vs DERIVED labels
35
 
36
+ Loop timing is easy to overclaim. This kernel labels **every** field, carrying the backbone's `LOOP_TIMING_BASIS` verbatim:
 
37
 
38
  | Field | Label | Meaning |
39
  |---|---|---|
40
+ | `modelMs` | **MEASURED** | Σ of every provider-attempt wall window (success AND failed hops) |
41
  | `peakAttemptMs` | **MEASURED** | the single slowest attempt window (peak-vs-sum) |
42
+ | `overheadMs` | **DERIVED** | `max(0, wall − modelMs)` — Alloy's orchestration, NOT pure CPU time |
43
+ | `serializationTaxMs` | **DERIVED** | `max(0, modelMs − peak)` — a **COUNTERFACTUAL, never a realized saving** (loop is strictly sequential) |
44
+ | `deadHopMs` | **DERIVED** | Σ failed windows before the served hop — upper bound only, no prefetch |
45
  | `maxBudget` | **DECLARED** | the per-run attempt ceiling |
46
  | `exit` | **REPORTED** | `converged` / `budgetExhausted` / `aborted` / `error` |
47
+ | `receiptsInEqOut` | **DOCTRINE** | one receipt trail in, one out — a doctrine invariant, NOT a proof |
48
 
49
+ When `wall_ms=None`, `overheadMs` is honestly **None / UNAVAILABLE** — never fabricated. A wall smaller than modelMs surfaces `wallLessThanModel` (a measurement inconsistency made visible, never hidden).
 
 
50
 
51
  ## Quickstart (fully offline)
52
 
53
  ```python
54
  from kernels import get_kernel
 
55
  ou = get_kernel("SZLHOLDINGS/szl-ouroboros", revision="main", trust_remote_code=True)
 
56
  attempts = [
57
  {"provider": "sovereign", "model": "own-metal", "ok": False, "latency_ms": 220, "node": "tower"},
58
+ {"provider": "sovereign", "model": "own-metal", "ok": True, "latency_ms": 900, "node": "laptop"}]
 
59
  trace = ou.build_loop_trace(attempts, wall_ms=1300, exit="converged", max_budget=4)
60
  print(trace["modelMs"], trace["overheadMs"], trace["deadHopMs"]) # 1120 180 220
61
+ print(ou.selfcheck()) # falsifiable arithmetic self-check
 
62
  ```
63
 
64
+ `LOOP_DOCTRINE = "bounded, terminating, receipt-closed"` — the Ouroboros closes on its own tail. `withinBudget` surfaces the bounded-loop guarantee; a violation is **reported, never clamped**. Demo runs make no model call → `modelMs / peak / deadHop` are honestly 0.
 
 
65
 
66
  ## Tests — MEASURED, local, stdlib-only
67
 
68
+ `PYTHONPATH=build/torch-universal python3 -m pytest tests/ -q` → **13 passed**. The arithmetic is falsifiable — a wrong split flips the asserts; an unmeasured wall yields `overheadMs=None`; a missing latency raises; a budget violation is surfaced.
 
 
 
 
 
 
 
69
 
70
  ## Provenance
71
 
72
+ Mirrors the live a11oy loop-tax accounting (`backbone.ts` — `buildLoopTrace`, `sumAttemptMs`, `peakAttemptMs`, `deadHopMs`, `LOOP_DOCTRINE`, `LOOP_TIMING_BASIS`). Backed by [lutar-lean](https://github.com/szl-holdings/lutar-lean), DOI [10.5281/zenodo.20434308](https://doi.org/10.5281/zenodo.20434308). Honest-model trio with [`szl-invariants`](https://huggingface.co/SZLHOLDINGS/szl-invariants) and [`szl-formulas`](https://huggingface.co/SZLHOLDINGS/szl-formulas); anchored by [`szl-kernels`](https://huggingface.co/SZLHOLDINGS/szl-kernels). Live substrate: [a-11-oy.com](https://a-11-oy.com).
 
 
 
 
 
 
 
73
 
74
  ## License
75
 
76
+ Apache-2.0 · © 2026 SZL Holdings · Stephen P. Lutar · ORCID [0009-0001-0110-4173](https://orcid.org/0009-0001-0110-4173).
77
 
78
  ---
79
 
80
+ <sub><b>SZL Holdings honesty footer.</b> Λ = Conjecture 1 (advisory, never a theorem). locked-proven = exactly 8 {F1,F4,F7,F11,F12,F18,F19,F22}. Honesty labels: MEASURED / REPORTED / MODELED / HEURISTIC / UNKNOWN / UNAVAILABLE. Trust never 100% (ceiling 0.97). serializationTax is a counterfactual, never a saving. <a href="https://a-11-oy.com">a-11-oy.com</a> · <a href="https://huggingface.co/SZLHOLDINGS">huggingface.co/SZLHOLDINGS</a></sub>