Spaces:
Running
Running
chore(sync): mirror backend .py + Dockerfile to Space (hf-sync-backend)
Browse filesAutomated backend sync from szl-holdings/a11oy main via hf-sync-backend.
Updated (differed from the Space): Dockerfile, a11oy_canonical_domain.py, a11oy_formula_tiers.py, a11oy_wireA_metrics.py, serve.py
Deleted (gone from the repo + Dockerfile COPY set): (none)
Keeps the Space-built backend (serve.py + the Dockerfile-COPY'd .py
modules) identical to GitHub main so the Space never rebuilds from a
stale backend, new endpoints don't 404 there, and orphaned modules
removed from the repo don't linger in the Space tree.
- Dockerfile +1 -1
- a11oy_canonical_domain.py +39 -0
- a11oy_formula_tiers.py +144 -0
- a11oy_wireA_metrics.py +11 -9
- serve.py +36 -0
Dockerfile
CHANGED
|
@@ -615,7 +615,7 @@ COPY web/formulas.html web/v4_fleet_panel.html web/operator.html web/fleet-c2.ht
|
|
| 615 |
# the guarded import falls back to a stub in the image and the react endpoints
|
| 616 |
# 404. Restores wiring clobbered by a later integration-wave push built from a
|
| 617 |
# stale base (the register block in serve.py + this COPY were both lost).
|
| 618 |
-
COPY knowledge.json szl_parity_gaps.py compliance_crosswalk.py szl_compliance_mesh.py a11oy_warhacker_obs.py serve.py szl_governed_api.py szl_demo_tier1.py szl_assurance.py govern_showcase.html a11oy_wireA_metrics.py cathedral.html a11oy_operator_organ.py a11oy_hf_assets.py szl_b2_secdata.py gates_manifest.json a11oy_code_orchestrator.py a11oy_agent_loop.py a11oy_org_rag.py a11oy_mcp_client.py szl_rag.py a11oy_code_ide.html wayra_serve.py wayra_snapshot.json wayra_digests_7d.json szl_khipu_os_routes.py szl_spaces_proxy.py szl_spaces_surface.py szl_khipu_consensus.py szl_puriq_formulas.py ayni_os_serve.py szl_live_wires.py live_wires.html live_wires_3d.js szl_intoto.py szl_intoto_routes.py szl_scitt.py szl_dsse.py szl_provenance.py szl_be_hardening.py szl_unay.py szl_khipu_lmdb.py szl_khipu_replicate.py szl_unay_routes.py szl_warhacker_aliases.py a11oy_v4_hickok.py szl_khipu.py szl_formulas.py a11oy_v4_formulas.py szl_anatomy_3d.py szl_anatomy_routes.py _vendor_blobs.py szl_v4_fleet.py operator_shell_v4.py szl_bridge.py szl_bridge_schemas.py agent.html a11oy_bridge_cli.py szl_ken.py a11oy_formula_endpoints.py a11oy_formulas_page.py a11oy_frontier_patch.py a11oy_v4_agent.py szl_brain.py szl_wire.py szl_hub.py szl_rosie_companion.py szl_receipt_substrate.py szl_alloy_embed_fabric.py szl_ayni_quorum.py szl_agentic_loop.py szl_formula_wiring.py szl_formula_surfaces.py a11oy_code_engine.py a11oy_code.py a11oy_seismic.py szl_warhacker_real.py szl_warhacker_demos.py NOTICE_warhacker_demos.txt szl_llm_registry.py szl_elite_console.py szl_alloy_models.py szl_scaling.py szl_allodial.py szl_entanglement.py szl_neuroplasticity.py szl_chain_of_title.py szl_sovereign_compute.py a11oy_active_flux_router.py szl_energy_budget.py szl_energy_sovereign.py szl_energy_provenance.py szl_heart_blood.py szl_engine_status.py szl_backend_hardening.py revenue_endpoints.py a11oy_harvest_endpoints.py joule_billing.py szl_energy_ledger.py szl_energy_operator.py szl_energy_projection.py szl_cheapest_watt.py szl_energy_live.py szl_orbital_topology.py szl_orbital_projection.py a11oy_orbital_page.py a11oy_frontier_page.py szl_frontier_manifest.py a11oy_code_as_action.py a11oy_governed_kernel.py szl_lambda_tripwire.py szl_provenance_receipt.py szl_khipu_verify.py szl_attest_stack.py szl_demo_sign.py szl_sda.py szl_fabric_surface.py szl_nemo_agents.py szl_kverify.py szl_specdec.py szl_immune.py szl_quant_qbio_holo.py szl_materials.py szl_materials_predict.py a11oy_factory.py a11oy_constitution.py a11oy_nav_wireup.py szl_mbse_cosim.py szl_mbse_nav.py szl_mbse.py szl_factory.py szl_willay_gateway.py a11oy_willay_nav.py szl_waqay.py a11oy_waqay_nav.py szl_yupay.py a11oy_yupay_nav.py a11oy_uds_portability_nav.py szl_pinn_bounds.py physical_bounds_certificate.json agentic_decision_trail.json physical_bounds_certificate.dsse.json szl_pinn_inverse.py szl_governed_ipinn.py szl_calphad_inverse.py szl_pnt_mesh.py quantum_sensing_limits.py pnt_resilience.py nav_coasting.py fundamental_limits.py szl_counter_uas_proxy.py szl_gpu_quant.py szl_joules_truth.py revenue_model.py szl_prod_hardening.py szl_resilience.py szl_observability.py szl_corpus_publish.py szl_lake_store.py szl_lake_ingest.py szl_e8.py szl_trajectory_sign.py szl_nemotron_ingest.py szl_nemotron_corpus.py szl_nemo_verify.py a11oy_nemo_core.py szl_restraint.py szl_sapa.py szl_sapa_patch.py szl_restraint_energy.py a11oy_react_core.py szl_org_lambda.py ./
|
| 619 |
|
| 620 |
# DEV2 Build 1: TEE/TDX attestation hook (2026-06-30) — imported by serve.py (guarded);
|
| 621 |
# MUST be per-file COPY'd or /api/a11oy/v1/tee/status + tee_attestation receipt field
|
|
|
|
| 615 |
# the guarded import falls back to a stub in the image and the react endpoints
|
| 616 |
# 404. Restores wiring clobbered by a later integration-wave push built from a
|
| 617 |
# stale base (the register block in serve.py + this COPY were both lost).
|
| 618 |
+
COPY knowledge.json szl_parity_gaps.py compliance_crosswalk.py szl_compliance_mesh.py a11oy_warhacker_obs.py serve.py szl_governed_api.py szl_demo_tier1.py szl_assurance.py govern_showcase.html a11oy_wireA_metrics.py cathedral.html a11oy_operator_organ.py a11oy_hf_assets.py szl_b2_secdata.py gates_manifest.json a11oy_code_orchestrator.py a11oy_agent_loop.py a11oy_org_rag.py a11oy_mcp_client.py szl_rag.py a11oy_code_ide.html wayra_serve.py wayra_snapshot.json wayra_digests_7d.json szl_khipu_os_routes.py szl_spaces_proxy.py szl_spaces_surface.py szl_khipu_consensus.py szl_puriq_formulas.py ayni_os_serve.py szl_live_wires.py live_wires.html live_wires_3d.js szl_intoto.py szl_intoto_routes.py szl_scitt.py szl_dsse.py szl_provenance.py szl_be_hardening.py szl_unay.py szl_khipu_lmdb.py szl_khipu_replicate.py szl_unay_routes.py szl_warhacker_aliases.py a11oy_v4_hickok.py szl_khipu.py szl_formulas.py a11oy_v4_formulas.py szl_anatomy_3d.py szl_anatomy_routes.py _vendor_blobs.py szl_v4_fleet.py operator_shell_v4.py szl_bridge.py szl_bridge_schemas.py agent.html a11oy_bridge_cli.py szl_ken.py a11oy_formula_endpoints.py a11oy_formulas_page.py a11oy_frontier_patch.py a11oy_v4_agent.py szl_brain.py szl_wire.py szl_hub.py szl_rosie_companion.py szl_receipt_substrate.py szl_alloy_embed_fabric.py szl_ayni_quorum.py szl_agentic_loop.py szl_formula_wiring.py szl_formula_surfaces.py a11oy_code_engine.py a11oy_code.py a11oy_seismic.py szl_warhacker_real.py szl_warhacker_demos.py NOTICE_warhacker_demos.txt szl_llm_registry.py szl_elite_console.py szl_alloy_models.py szl_scaling.py szl_allodial.py szl_entanglement.py szl_neuroplasticity.py szl_chain_of_title.py szl_sovereign_compute.py a11oy_active_flux_router.py szl_energy_budget.py szl_energy_sovereign.py szl_energy_provenance.py szl_heart_blood.py szl_engine_status.py szl_backend_hardening.py revenue_endpoints.py a11oy_harvest_endpoints.py joule_billing.py szl_energy_ledger.py szl_energy_operator.py szl_energy_projection.py szl_cheapest_watt.py szl_energy_live.py szl_orbital_topology.py szl_orbital_projection.py a11oy_orbital_page.py a11oy_frontier_page.py szl_frontier_manifest.py a11oy_code_as_action.py a11oy_governed_kernel.py szl_lambda_tripwire.py szl_provenance_receipt.py szl_khipu_verify.py szl_attest_stack.py szl_demo_sign.py szl_sda.py szl_fabric_surface.py szl_nemo_agents.py szl_kverify.py szl_specdec.py szl_immune.py szl_quant_qbio_holo.py szl_materials.py szl_materials_predict.py a11oy_factory.py a11oy_constitution.py a11oy_nav_wireup.py szl_mbse_cosim.py szl_mbse_nav.py szl_mbse.py szl_factory.py szl_willay_gateway.py a11oy_willay_nav.py szl_waqay.py a11oy_waqay_nav.py szl_yupay.py a11oy_yupay_nav.py a11oy_uds_portability_nav.py szl_pinn_bounds.py physical_bounds_certificate.json agentic_decision_trail.json physical_bounds_certificate.dsse.json szl_pinn_inverse.py szl_governed_ipinn.py szl_calphad_inverse.py szl_pnt_mesh.py quantum_sensing_limits.py pnt_resilience.py nav_coasting.py fundamental_limits.py szl_counter_uas_proxy.py szl_gpu_quant.py szl_joules_truth.py revenue_model.py szl_prod_hardening.py szl_resilience.py szl_observability.py szl_corpus_publish.py szl_lake_store.py szl_lake_ingest.py szl_e8.py szl_trajectory_sign.py szl_nemotron_ingest.py szl_nemotron_corpus.py szl_nemo_verify.py a11oy_nemo_core.py szl_restraint.py szl_sapa.py szl_sapa_patch.py szl_restraint_energy.py a11oy_react_core.py szl_org_lambda.py a11oy_canonical_domain.py a11oy_formula_tiers.py ./
|
| 619 |
|
| 620 |
# DEV2 Build 1: TEE/TDX attestation hook (2026-06-30) — imported by serve.py (guarded);
|
| 621 |
# MUST be per-file COPY'd or /api/a11oy/v1/tee/status + tee_attestation receipt field
|
a11oy_canonical_domain.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 3 |
+
# (c) 2026 Lutar, Stephen P. - SZL Holdings - ORCID 0009-0001-0110-4173
|
| 4 |
+
"""
|
| 5 |
+
a11oy_canonical_domain.py — make a-11-oy.com the single canonical host.
|
| 6 |
+
|
| 7 |
+
a11oy.net is SUNSET. This installs an app-level 301 redirect so any request whose
|
| 8 |
+
Host header is a11oy.net (or www.a11oy.net) is permanently redirected to the same
|
| 9 |
+
path+query on https://a-11-oy.com. The canonical HF Space host
|
| 10 |
+
(szlholdings-a11oy.hf.space), localhost, and a-11-oy.com itself are passed through
|
| 11 |
+
untouched, so the app keeps working on its origin while the public URL converges.
|
| 12 |
+
|
| 13 |
+
This is a READ-PATH-SAFE redirect: it is a pure 308/301 Location response, mints no
|
| 14 |
+
receipt, signs nothing, and touches no state (provenance rule: never sign on a read
|
| 15 |
+
path). Doctrine-safe: try/except-guarded register(app).
|
| 16 |
+
"""
|
| 17 |
+
|
| 18 |
+
CANONICAL_HOST = "a-11-oy.com"
|
| 19 |
+
|
| 20 |
+
# Hosts that should be permanently redirected to the canonical host.
|
| 21 |
+
SUNSET_HOSTS = {"a11oy.net", "www.a11oy.net"}
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
def register(app):
|
| 25 |
+
"""Install the a11oy.net -> a-11-oy.com 301 redirect middleware. Returns a status list."""
|
| 26 |
+
from starlette.responses import RedirectResponse
|
| 27 |
+
|
| 28 |
+
@app.middleware("http")
|
| 29 |
+
async def _canonical_host_redirect(request, call_next):
|
| 30 |
+
host = (request.headers.get("host") or "").split(":")[0].lower()
|
| 31 |
+
if host in SUNSET_HOSTS:
|
| 32 |
+
target = f"https://{CANONICAL_HOST}{request.url.path}"
|
| 33 |
+
if request.url.query:
|
| 34 |
+
target = f"{target}?{request.url.query}"
|
| 35 |
+
# 301: permanent. The sunset host must never be presented as canonical.
|
| 36 |
+
return RedirectResponse(url=target, status_code=301)
|
| 37 |
+
return await call_next(request)
|
| 38 |
+
|
| 39 |
+
return [f"301 {h} -> https://{CANONICAL_HOST}" for h in sorted(SUNSET_HOSTS)]
|
a11oy_formula_tiers.py
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
# SPDX-License-Identifier: Apache-2.0
|
| 3 |
+
# (c) 2026 Lutar, Stephen P. - SZL Holdings - ORCID 0009-0001-0110-4173
|
| 4 |
+
"""
|
| 5 |
+
a11oy_formula_tiers.py — canonical, honest 4-tier proof registry for the locked-8
|
| 6 |
+
formulas and the real trust-math theorems that sit *outside* the locked baseline.
|
| 7 |
+
|
| 8 |
+
This is the single source of truth for what each Lean obligation ACTUALLY proves.
|
| 9 |
+
It exists because the historical console copy described the locked-8 with semantic
|
| 10 |
+
governance meanings (F18 "DSSE seal", F19 "13-axis Λ geomean", F1 "gate-pass ⇒
|
| 11 |
+
Λ≥0.90", …) and cited anchor files (Lutar/Soundness.lean, STL.lean, Gates.lean,
|
| 12 |
+
Receipt.lean, Lambda.lean) that DO NOT EXIST in lutar-lean. The locked-8 in
|
| 13 |
+
Lutar/Puriq/Formulas/ProvedFormulas.lean prove conservative Nat/Int surrogates;
|
| 14 |
+
labelling them with the governance semantics they merely *motivate* is overclaiming.
|
| 15 |
+
|
| 16 |
+
The four tiers (verify-it-yourself, never overclaim):
|
| 17 |
+
1. LOCKED-PROVEN — in the no-axiom `locked_count_eight` baseline (Wave11),
|
| 18 |
+
labelled with WHAT IT ACTUALLY PROVES.
|
| 19 |
+
2. SEMANTIC-VERIFIED — sorry-free real theorem proving a governance property, but
|
| 20 |
+
NOT in the locked-8 set. This is where the real trust math
|
| 21 |
+
lives; present it proudly, but distinctly from the baseline.
|
| 22 |
+
3. evidence-backed — real runtime/algorithmic code, no Lean proof claim.
|
| 23 |
+
4. CONJECTURE — Λ unconditional uniqueness (machine-checked FALSE as stated),
|
| 24 |
+
Khipu BFT safety/liveness. Gray, NEVER green.
|
| 25 |
+
|
| 26 |
+
Pure-Python STDLIB only. Doctrine-safe: try/except-guarded register(app); the route
|
| 27 |
+
is pushed to the FRONT of app.router.routes so it wins over the Node proxy and SPA
|
| 28 |
+
catch-all. Λ = Conjecture 1 (NEVER a theorem). 0 runtime CDN. No key, no signing.
|
| 29 |
+
"""
|
| 30 |
+
|
| 31 |
+
# lutar-lean files verified MISSING at depth-1 clone (2026-06-30). Never cite as anchors.
|
| 32 |
+
PHANTOM_ANCHORS = [
|
| 33 |
+
"Lutar/Soundness.lean", "Lutar/STL.lean", "Lutar/Gates.lean",
|
| 34 |
+
"Lutar/Receipt.lean", "Lutar/Lambda.lean",
|
| 35 |
+
]
|
| 36 |
+
|
| 37 |
+
# Tier 1 — LOCKED-PROVEN. The no-axiom `locked_count_eight` baseline
|
| 38 |
+
# (Lutar/Wave11/AxiomDisclosure.lean:96-100). Conservative surrogates in
|
| 39 |
+
# Lutar/Puriq/Formulas/ProvedFormulas.lean (which also has 4 sorries OUTSIDE the
|
| 40 |
+
# locked-8 — those 4 are NOT these theorems). Labels = what each ACTUALLY proves.
|
| 41 |
+
LOCKED_PROVEN = [
|
| 42 |
+
{"id": "F1", "proves": "Replay-hash determinism — identical canonical input ⇒ identical receipt hash.",
|
| 43 |
+
"not": "NOT 'gate-pass ⇒ Λ ≥ 0.90'.",
|
| 44 |
+
"lean_file": "Lutar/Puriq/Formulas/ProvedFormulas.lean", "lean_name": "f1_replay_hash_determinism"},
|
| 45 |
+
{"id": "F4", "proves": "Khipu DAG acyclicity preserved under append.",
|
| 46 |
+
"not": None,
|
| 47 |
+
"lean_file": "Lutar/Puriq/Formulas/ProvedFormulas.lean", "lean_name": "f4_khipu_dag_acyclic_preserved"},
|
| 48 |
+
{"id": "F7", "proves": "Chaski FIFO ordering preserved.",
|
| 49 |
+
"not": None,
|
| 50 |
+
"lean_file": "Lutar/Puriq/Formulas/ProvedFormulas.lean", "lean_name": "f7_chaski_fifo_order"},
|
| 51 |
+
{"id": "F11", "proves": "Ayni reciprocity conservation — b + c balance over Int.",
|
| 52 |
+
"not": "NOT 'STL robustness ρ envelope'.",
|
| 53 |
+
"lean_file": "Lutar/Puriq/Formulas/ProvedFormulas.lean", "lean_name": "f11_ayni_reciprocity_conservation"},
|
| 54 |
+
{"id": "F12", "proves": "Kuramoto additive (p1 + p2 over k phases) — additivity, by decide.",
|
| 55 |
+
"not": "NOT 'deny-by-default gate monotonicity'.",
|
| 56 |
+
"lean_file": "Lutar/Puriq/Formulas/ProvedFormulas.lean", "lean_name": "f12_kuramoto_additive"},
|
| 57 |
+
{"id": "F18", "proves": "Reed-Solomon parity count — (10-6 : Nat) = 4, erasure-tolerance arithmetic, by decide.",
|
| 58 |
+
"not": "NOT 'DSSE seal binds canonical payload'.",
|
| 59 |
+
"lean_file": "Lutar/Puriq/Formulas/ProvedFormulas.lean", "lean_name": "f18_reed_solomon_parity_count"},
|
| 60 |
+
{"id": "F19", "proves": "Bekenstein additive — s1 ≤ s1 + s2, entropy-budget monotonicity over Nat.",
|
| 61 |
+
"not": "NOT '13-axis Λ geometric-mean aggregate'.",
|
| 62 |
+
"lean_file": "Lutar/Puriq/Formulas/ProvedFormulas.lean", "lean_name": "f19_bekenstein_additive"},
|
| 63 |
+
{"id": "F22", "proves": "Khipu emit append-only monotonicity.",
|
| 64 |
+
"not": None,
|
| 65 |
+
"lean_file": "Lutar/Puriq/Formulas/ProvedFormulas.lean", "lean_name": "f22_khipu_emit_monotone"},
|
| 66 |
+
]
|
| 67 |
+
|
| 68 |
+
# Tier 2 — SEMANTIC-VERIFIED. Sorry-free real theorems (except where a residual sorry
|
| 69 |
+
# is disclosed) that prove the governance property, OUTSIDE the locked-8. This is the
|
| 70 |
+
# real trust math: present proudly as "machine-checked, outside the frozen baseline."
|
| 71 |
+
SEMANTIC_VERIFIED = [
|
| 72 |
+
{"id": "Λ-bound-max", "proves": "Λ ≤ max(axes) — aggregate upper bound. 0 sorries.",
|
| 73 |
+
"lean_file": "Lutar/Bound.lean", "lean_name": "Λ_le_max", "sorries": 0},
|
| 74 |
+
{"id": "Λ-bound-min", "proves": "min(axes) ≤ Λ — aggregate lower bound. 0 sorries.",
|
| 75 |
+
"lean_file": "Lutar/Bound.lean", "lean_name": "min_le_Λ", "sorries": 0},
|
| 76 |
+
{"id": "Λ-normalize", "proves": "Λ definition + axis normalization well-formed. 0 sorries.",
|
| 77 |
+
"lean_file": "Lutar/Invariant.lean", "lean_name": "a3_normalize_proof", "sorries": 0},
|
| 78 |
+
{"id": "Theorem-U", "proves": "Λ uniqueness CONDITIONAL on separability (the honest, proven conditional).",
|
| 79 |
+
"lean_file": "Lutar/Round13/LambdaSeparable.lean", "lean_name": "lambda_unique_of_separable", "sorries": 0},
|
| 80 |
+
{"id": "robustness", "proves": "STL/adversarial robustness preserved under composition.",
|
| 81 |
+
"lean_file": "Lutar/Composition/AdversarialRobustness.lean", "lean_name": "robustness_preserved_by_composition", "sorries": 0},
|
| 82 |
+
{"id": "F14-DSSE", "proves": "DSSE verifiability — under DISCLOSED axiom ecdsa_unforgeable.",
|
| 83 |
+
"lean_file": "Lutar/Puriq/Formulas/PuriqFormulaLean.lean", "lean_name": "f14_dsse_verifiable", "sorries": 0,
|
| 84 |
+
"axiom": "ecdsa_unforgeable (disclosed)"},
|
| 85 |
+
{"id": "receipt-transduction", "proves": "Receipt transduction invariant (receipts.in ≡ receipts.out).",
|
| 86 |
+
"lean_file": "Lutar/Transduction/ReceiptInvariant.lean", "lean_name": "receipt_transduction_invariant", "sorries": 1},
|
| 87 |
+
]
|
| 88 |
+
|
| 89 |
+
# Tier 4 — CONJECTURE / ADVISORY. Gray, NEVER green. The canonical Λ is a 13-axis
|
| 90 |
+
# weighted geometric mean, advisory, floor 0.90 — its unconditional uniqueness is FALSE
|
| 91 |
+
# as stated (machine-checked). Theorem U above is the proven *conditional* (Tier 2).
|
| 92 |
+
CONJECTURE = [
|
| 93 |
+
{"id": "Conjecture-1", "claim": "Λ unconditional uniqueness.",
|
| 94 |
+
"status": "machine-checked FALSE as stated; Theorem U is the proven conditional.", "color": "gray"},
|
| 95 |
+
{"id": "Conjecture-2", "claim": "Khipu BFT safety.", "status": "conjecture, never proven.", "color": "gray"},
|
| 96 |
+
{"id": "Conjecture-3", "claim": "Khipu BFT liveness.", "status": "conjecture, never proven.", "color": "gray"},
|
| 97 |
+
]
|
| 98 |
+
|
| 99 |
+
LAMBDA = {
|
| 100 |
+
"definition": "13-axis weighted geometric mean",
|
| 101 |
+
"role": "advisory",
|
| 102 |
+
"floor": 0.90,
|
| 103 |
+
"bounds": "SEMANTIC-VERIFIED (Λ_le_max / min_le_Λ, 0 sorries)",
|
| 104 |
+
"uniqueness": "Theorem U conditional (SEMANTIC-VERIFIED) / Conjecture 1 unconditional (machine-checked FALSE)",
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
TIERS = {
|
| 108 |
+
"model": "4-tier honesty model (RECONCILE.md, binding)",
|
| 109 |
+
"locked_count": 8,
|
| 110 |
+
"locked_ids": [f["id"] for f in LOCKED_PROVEN],
|
| 111 |
+
"locked_theorem": "locked_count_eight (no-axiom, Lutar/Wave11/AxiomDisclosure.lean:96-100)",
|
| 112 |
+
"phantom_anchors_never_cited": PHANTOM_ANCHORS,
|
| 113 |
+
"lambda": LAMBDA,
|
| 114 |
+
"tiers": {
|
| 115 |
+
"LOCKED-PROVEN": LOCKED_PROVEN,
|
| 116 |
+
"SEMANTIC-VERIFIED": SEMANTIC_VERIFIED,
|
| 117 |
+
"evidence-backed": [{"note": "runtime/algorithmic rules with real code, no Lean proof claim."}],
|
| 118 |
+
"CONJECTURE": CONJECTURE,
|
| 119 |
+
},
|
| 120 |
+
"honest": ("Every locked-8 entry is labelled with what its Lean obligation ACTUALLY proves "
|
| 121 |
+
"(conservative Nat/Int surrogates), NOT the governance semantics it motivates. "
|
| 122 |
+
"The real trust math (Λ bounds, Theorem U conditional, DSSE verifiability) is "
|
| 123 |
+
"SEMANTIC-VERIFIED, machine-checked OUTSIDE the frozen locked-8. Conjectures are "
|
| 124 |
+
"gray and NEVER rendered green. Verify it yourself: clone lutar-lean, open the "
|
| 125 |
+
"cited file, count the sorries."),
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
def register(app):
|
| 130 |
+
"""Mount GET /api/a11oy/v1/formula-tiers at the FRONT of the router. Returns route list."""
|
| 131 |
+
from fastapi.responses import JSONResponse
|
| 132 |
+
added = []
|
| 133 |
+
|
| 134 |
+
@app.get("/api/a11oy/v1/formula-tiers")
|
| 135 |
+
async def _a11oy_formula_tiers():
|
| 136 |
+
return JSONResponse(TIERS)
|
| 137 |
+
|
| 138 |
+
try:
|
| 139 |
+
r = app.router.routes.pop()
|
| 140 |
+
app.router.routes.insert(0, r)
|
| 141 |
+
except Exception:
|
| 142 |
+
pass
|
| 143 |
+
added.append("/api/a11oy/v1/formula-tiers")
|
| 144 |
+
return added
|
a11oy_wireA_metrics.py
CHANGED
|
@@ -401,12 +401,12 @@ def register(app):
|
|
| 401 |
|
| 402 |
# ---- SQLite FTS5 search over an in-image governance corpus -------------------------
|
| 403 |
_FTS_CORPUS = [
|
| 404 |
-
("F1", "
|
| 405 |
-
("F11", "
|
| 406 |
-
("F12", "
|
| 407 |
-
("F18", "
|
| 408 |
-
("F19", "
|
| 409 |
-
("
|
| 410 |
("organism", "living organism organ topology Reception Operator Provenance-Anchor Policy"),
|
| 411 |
("chain", "receipt hash-chain Khipu DSSE ledger locked-8 aggregate"),
|
| 412 |
("threat", "attack surface zero-trust path ingress auth-gate policy-gate egress"),
|
|
@@ -462,9 +462,11 @@ def register(app):
|
|
| 462 |
"kind": kind, "p": p, "axes": xs, "variants": variants,
|
| 463 |
"am_gm_hm_ordering_holds": ordered,
|
| 464 |
"maturity": "Λ = Conjecture 1 (advisory, never a theorem)",
|
| 465 |
-
"lean": "Lutar/
|
| 466 |
-
|
| 467 |
-
|
|
|
|
|
|
|
| 468 |
"note": NOTE,
|
| 469 |
})
|
| 470 |
_front("/api/a11oy/v1/wirea/lambda/panel")
|
|
|
|
| 401 |
|
| 402 |
# ---- SQLite FTS5 search over an in-image governance corpus -------------------------
|
| 403 |
_FTS_CORPUS = [
|
| 404 |
+
("F1", "replay-hash determinism identical canonical input yields identical receipt hash locked-proven"),
|
| 405 |
+
("F11", "Ayni reciprocity conservation balance over Int locked-proven"),
|
| 406 |
+
("F12", "Kuramoto additive phase additivity locked-proven"),
|
| 407 |
+
("F18", "Reed-Solomon parity count erasure tolerance arithmetic locked-proven"),
|
| 408 |
+
("F19", "Bekenstein additive entropy budget monotonicity locked-proven"),
|
| 409 |
+
("Lambda", "13-axis weighted geometric mean advisory floor 0.90 bounds SEMANTIC-VERIFIED uniqueness Conjecture-1 unconditional FALSE Theorem-U conditional"),
|
| 410 |
("organism", "living organism organ topology Reception Operator Provenance-Anchor Policy"),
|
| 411 |
("chain", "receipt hash-chain Khipu DSSE ledger locked-8 aggregate"),
|
| 412 |
("threat", "attack surface zero-trust path ingress auth-gate policy-gate egress"),
|
|
|
|
| 462 |
"kind": kind, "p": p, "axes": xs, "variants": variants,
|
| 463 |
"am_gm_hm_ordering_holds": ordered,
|
| 464 |
"maturity": "Λ = Conjecture 1 (advisory, never a theorem)",
|
| 465 |
+
"lean": "Bounds SEMANTIC-VERIFIED: Lutar/Bound.lean::Λ_le_max, ::min_le_Λ (0 sorries). "
|
| 466 |
+
"Uniqueness conditional: Lutar/Round13/LambdaSeparable.lean::lambda_unique_of_separable (Theorem U). "
|
| 467 |
+
"F19 locked-proven theorem = f19_bekenstein_additive (entropy-budget monotonicity, NOT the Λ aggregate).",
|
| 468 |
+
"honest": "Quasi-arithmetic (Kolmogorov–Nagumo) mean family; canonical Λ = 13-axis weighted geometric mean. "
|
| 469 |
+
"Unconditional uniqueness is Conjecture 1 (machine-checked FALSE); Theorem U is the proven conditional.",
|
| 470 |
"note": NOTE,
|
| 471 |
})
|
| 472 |
_front("/api/a11oy/v1/wirea/lambda/panel")
|
serve.py
CHANGED
|
@@ -10595,6 +10595,42 @@ except Exception as _wirea_e:
|
|
| 10595 |
# END: DEV-WIRE-A metrics layer
|
| 10596 |
# ============================================================================
|
| 10597 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10598 |
# ============================================================================
|
| 10599 |
# SOVEREIGN COMPUTE single-pane (#320): ADDITIVE, pure-stdlib, try/except-guarded.
|
| 10600 |
# Honest single-pane readiness for the sovereign-AI substrate — each capability
|
|
|
|
| 10595 |
# END: DEV-WIRE-A metrics layer
|
| 10596 |
# ============================================================================
|
| 10597 |
|
| 10598 |
+
# ============================================================================
|
| 10599 |
+
# Canonical honest 4-tier formula registry (LOCKED-PROVEN truthful labels +
|
| 10600 |
+
# SEMANTIC-VERIFIED tier + CONJECTURE gray). Single source of truth for what
|
| 10601 |
+
# each Lean obligation ACTUALLY proves; replaces the historical overclaiming
|
| 10602 |
+
# console copy. Per-file COPY in Dockerfile (no COPY . .). Λ = Conjecture 1.
|
| 10603 |
+
# ============================================================================
|
| 10604 |
+
try:
|
| 10605 |
+
import a11oy_formula_tiers as _ftiers_mod
|
| 10606 |
+
import sys as _ftiers_sys
|
| 10607 |
+
_ftiers_status = _ftiers_mod.register(app)
|
| 10608 |
+
print(f"[a11oy] formula-tiers registered ({len(_ftiers_status)} routes): {_ftiers_status}", file=_ftiers_sys.stderr)
|
| 10609 |
+
_A11OY_FTIERS_DIAG = {"status": "ok", "routes": _ftiers_status}
|
| 10610 |
+
except Exception as _ftiers_e:
|
| 10611 |
+
import sys as _ftiers_sys, traceback as _ftiers_tb
|
| 10612 |
+
print(f"[a11oy] formula-tiers FAILED (non-fatal): {_ftiers_e!r}", file=_ftiers_sys.stderr)
|
| 10613 |
+
_ftiers_tb.print_exc(file=_ftiers_sys.stderr)
|
| 10614 |
+
_A11OY_FTIERS_DIAG = {"status": "FAILED", "error": repr(_ftiers_e)}
|
| 10615 |
+
|
| 10616 |
+
# ============================================================================
|
| 10617 |
+
# Canonical host: a-11-oy.com. a11oy.net is SUNSET — app-level 301 redirect so the
|
| 10618 |
+
# public URL converges on a-11-oy.com. Read-path-safe (pure Location response, no
|
| 10619 |
+
# receipt, no signing). Registered before uvicorn.run so the middleware stack is
|
| 10620 |
+
# built with it; passes through the HF Space host + localhost untouched.
|
| 10621 |
+
# ============================================================================
|
| 10622 |
+
try:
|
| 10623 |
+
import a11oy_canonical_domain as _canon_mod
|
| 10624 |
+
import sys as _canon_sys
|
| 10625 |
+
_canon_status = _canon_mod.register(app)
|
| 10626 |
+
print(f"[a11oy] canonical-domain registered ({len(_canon_status)} redirects): {_canon_status}", file=_canon_sys.stderr)
|
| 10627 |
+
_A11OY_CANON_DIAG = {"status": "ok", "redirects": _canon_status}
|
| 10628 |
+
except Exception as _canon_e:
|
| 10629 |
+
import sys as _canon_sys, traceback as _canon_tb
|
| 10630 |
+
print(f"[a11oy] canonical-domain FAILED (non-fatal): {_canon_e!r}", file=_canon_sys.stderr)
|
| 10631 |
+
_canon_tb.print_exc(file=_canon_sys.stderr)
|
| 10632 |
+
_A11OY_CANON_DIAG = {"status": "FAILED", "error": repr(_canon_e)}
|
| 10633 |
+
|
| 10634 |
# ============================================================================
|
| 10635 |
# SOVEREIGN COMPUTE single-pane (#320): ADDITIVE, pure-stdlib, try/except-guarded.
|
| 10636 |
# Honest single-pane readiness for the sovereign-AI substrate — each capability
|