Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/authorized-exact-gym.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: AEG-01 exact authorized development gym
on:
push:
paths:
- 'research/authorized_exact_gym/**'
- 'research/nor60_authorized_interpreter/optimized_execution.py'
- 'research/nor45_authorized_program/independent_execution_verifier.py'
- '.github/workflows/authorized-exact-gym.yml'
pull_request:
paths:
- 'research/authorized_exact_gym/**'
- 'research/nor60_authorized_interpreter/optimized_execution.py'
- 'research/nor45_authorized_program/independent_execution_verifier.py'
- '.github/workflows/authorized-exact-gym.yml'
permissions:
contents: read
jobs:
development-boundaries:
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: python -m pip install --disable-pip-version-check cryptography==46.0.4 gmpy2==2.3.2
- name: Check exact answers, authentication, referee isolation and retained evidence
run: |
python -m unittest research.authorized_exact_gym.test_gym -v
python -O -m unittest research.authorized_exact_gym.test_gym -v
41 changes: 41 additions & 0 deletions .github/workflows/nor60-archived-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: NOR-60 permanent original evidence and capstone audit

on:
push:
paths:
- 'research/nor*/**'
- 'research/rrc_compactification/**'
- 'papers/authorized-exact-computation/**'
- '.github/workflows/nor60-archived-audit.yml'
pull_request:
paths:
- 'research/nor*/**'
- 'research/rrc_compactification/**'
- 'papers/authorized-exact-computation/**'
- '.github/workflows/nor60-archived-audit.yml'
workflow_dispatch:

permissions:
contents: read

jobs:
original-evidence-and-capstone:
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install pinned audit dependencies
run: python -m pip install --disable-pip-version-check cryptography==46.0.4 gmpy2==2.3.2
- name: Exercise eight source-free archive integrity controls
run: |
python -m unittest research.nor60_authorized_interpreter.test_archive_audit -v
python -O -m unittest research.nor60_authorized_interpreter.test_archive_audit -v
- name: Replay the original archive without timing or evidence writes
run: python research/nor60_authorized_interpreter/original_archive_audit.py
- name: Verify the capstone evidence ledger
run: python research/nor_line_capstone/audit_evidence.py
102 changes: 102 additions & 0 deletions .github/workflows/nor60-authorized-interpreter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: NOR-60 first frozen signed exact interpreter experiment

on:
push:
branches:
- research/nor60-capstone-20261118
paths:
- 'research/nor60_authorized_interpreter/**'
- 'research/nor45_authorized_program/independent_execution_verifier.py'
- '.github/workflows/nor60-authorized-interpreter.yml'
pull_request:
paths:
- 'research/nor60_authorized_interpreter/**'
- 'research/nor45_authorized_program/independent_execution_verifier.py'
- '.github/workflows/nor60-authorized-interpreter.yml'

permissions:
contents: read

concurrency:
group: nor60-first-${{ github.ref }}
cancel-in-progress: false

jobs:
source_free_security:
runs-on: ubuntu-24.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: python -m pip install --disable-pip-version-check cryptography==46.0.4 gmpy2==2.3.2
- name: Check frozen registration when first-run marker is present
run: |
if test -f research/nor60_authorized_interpreter/REGISTRATION_SHA.txt; then
git merge-base --is-ancestor "$(cat research/nor60_authorized_interpreter/REGISTRATION_SHA.txt)" HEAD
fi
test -s research/nor60_authorized_interpreter/REGISTRATION.md
- name: Source-free exact and signed regression checks
run: |
python -m unittest research.nor60_authorized_interpreter.test_optimized_execution research.nor60_authorized_interpreter.test_cohort_integrity research.nor60_authorized_interpreter.test_reporting research.nor59_authorized_merkle.test_authorized_root research.nor45_authorized_program.test_program_authority research.nor44_session_protocol.test_session_protocol research.nor58_static_merkle.test_template -v
python -O -m unittest research.nor60_authorized_interpreter.test_optimized_execution research.nor60_authorized_interpreter.test_cohort_integrity research.nor60_authorized_interpreter.test_reporting -v
python research/nor59_authorized_merkle/original_archive_audit.py

freeze_first_public_sources:
if: github.event_name == 'push' && contains(github.event.head_commit.message, 'NOR60-FIRST-CPU') && github.run_attempt == '1'
needs: source_free_security
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Verify prospective registration and freeze the first public inputs
run: |
test "$GITHUB_RUN_ATTEMPT" = 1
git merge-base --is-ancestor "$(cat research/nor60_authorized_interpreter/REGISTRATION_SHA.txt)" HEAD
test ! -e research/nor60_authorized_interpreter/results/nor60_first_original_hosted.zip
python -u research/nor60_authorized_interpreter/cohort.py --public-only-out /tmp/nor60_first_original_60_public_only.json
- uses: actions/upload-artifact@v4
with:
name: nor60_first_original_60_public_only
path: /tmp/nor60_first_original_60_public_only.json
retention-days: 90
if-no-files-found: error

first_four_arm_cpu:
needs: freeze_first_public_sources
runs-on: ubuntu-24.04
timeout-minutes: 20
env:
PYTHONHASHSEED: '0'
OMP_NUM_THREADS: '1'
OPENBLAS_NUM_THREADS: '1'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: python -m pip install --disable-pip-version-check cryptography==46.0.4 gmpy2==2.3.2
- uses: actions/download-artifact@v4
with:
name: nor60_first_original_60_public_only
path: /tmp/nor60
- name: Record the first five-repeat complete signed experiment
run: |
test "$GITHUB_RUN_ATTEMPT" = 1
python -u research/nor60_authorized_interpreter/benchmark_cpu.py --public-file /tmp/nor60/nor60_first_original_60_public_only.json --repeats 5 --out /tmp/nor60/nor60_first_original_cpu.json --journal /tmp/nor60/nor60_first_original_progress.jsonl
- name: Retain first result or interruption evidence
if: always()
uses: actions/upload-artifact@v4
with:
name: nor60_first_original_cpu_and_evidence
path: /tmp/nor60/*
retention-days: 90
if-no-files-found: error
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
**CGC-01 protected causal compactification (November 18, 2026):** [Task-conditioned safe causal dimension, finite-radius nonlinear bounds, exact recurrent quotient and precision-bit obstructions](research/causal_gauge_compactification/README.md). [Mathematical derivations](research/causal_gauge_compactification/THEORY.md) and 18 deterministic numerical/exact-rational tests connect BPD's source-binding controls with the NOR, LSV, SMC, SCM and recurrent-circuit compactification tracks. Source-only theory; no newly trained model result.

**NOR execution research capstone (November 18, 2026):** [Paper](papers/authorized-exact-computation/paper.md) and [audited first NOR60 result](research/nor60_authorized_interpreter/RESULTS.md). The registered 60-source signed-verifier workload passed all five gates with a combined time ratio of 0.563961. [AEG-01](research/authorized_exact_gym/README.md) provides public CPU training and development tasks with an independent exact grader.

**NOR-12:** [Task-supervised basin-conditioned residual readout](research/nor12_task_readout/README.md) fits four 16×14 matched residual rankers over the frozen 1,000-parameter RRC-25 GRU using only exact degree-192 public demo verification labels. The first heldout run yielded 44/72 future-correct for the basin residual vs. 42/72 original, with both gains arising from a single aliased late-source feature tensor. Four independent seed-separated 72-case confirmations yielded 167/288 vs. 160/288, matched by the random-feature control, with unadjusted case-level paired p≈0.21. An ablation of the basin feature left the first split's 44/72 result unchanged. [NOR-12B hosted independent results](https://github.com/MoralityLabAI/Compactification-Theory/actions/runs/43709095616) passed, and [NOR-12C frozen receipt audit](https://github.com/MoralityLabAI/Compactification-Theory/actions/runs/43709504979) is green. The original GRU is unchanged, and basin-specific task gains remain unestablished.

**NOR-10:** [Constructive one-bit terminal metric for two source-certified GRU attractors](research/nor01_numerical_orbit_sketch/NOR10.md) uses a single shared rational inter-center distance and one runtime basin-label bit to represent all late 24-step states of the signed and squared source streams. Exact integer-square-root quantization and source-locked nonlinear contraction yield an all-pair late-tail error <=1.096e-11 after 64 retained blocks, while a zero-bit shared code must incur >5.0209 cross-basin error. This one-dimensional terminal representation requires the two previously certified source labels and is separate from unseen-input basin classification and native task performance. [NOR-10 CI](https://github.com/MoralityLabAI/Compactification-Theory/actions/runs/43704307173) passed.
Expand Down
22 changes: 22 additions & 0 deletions papers/authorized-exact-computation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Exact Computation Under Signed Program Authority

The [manuscript](paper.md) consolidates the NOR exact-computation research line. It contains the original engineering outcomes, algebraic derivations, an explicit assurance contract, and a reusable evaluation design. The [evidence ledger](../../research/nor_line_capstone/evidence_ledger.json) preserves each study's comparator and first verdict.

The bibliography uses primary sources for authenticated trees, Ed25519, component-cost reasoning, and systems benchmarking. [references.bib](references.bib) supplies the verified publication metadata.

A PDF can be built from this directory with Pandoc and a complete XeLaTeX installation:

```bash
pandoc paper.md --citeproc --lua-filter=table_layout.lua \
--include-in-header=layout.tex --pdf-engine=xelatex \
-V geometry:margin=0.85in -V fontsize=10pt -o paper.pdf
```

The figures and their plotted values are committed under `figures/`. With
Matplotlib and NumPy installed, `python build_figures.py` rebuilds both figures
directly from the byte-pinned first NOR60 archive. The builder checks the ZIP's
SHA-256 before reading any measurements.

Historical evidence remains pinned to its original source commit; final
experiment and gym artifacts carry their own receipts. The PDF was rendered
and inspected page by page for the capstone release.
89 changes: 89 additions & 0 deletions papers/authorized-exact-computation/build_figures.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
"""Render paper figures from the byte-pinned original NOR60 artifact."""
import csv
import hashlib
import json
from pathlib import Path
from zipfile import ZipFile
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import numpy as np

HERE = Path(__file__).resolve().parent
ROOT = HERE.parents[1]
ARCHIVE = ROOT / "research/nor60_authorized_interpreter/results/nor60_first_original_hosted.zip"
EXPECTED = "c92e2c4e3bfcfd8e1371d1504c89d6812ac263ef270fc9d62e89d335f23da53c"
if hashlib.sha256(ARCHIVE.read_bytes()).hexdigest() != EXPECTED:
raise ValueError("first NOR60 archive differs from observed evidence")
with ZipFile(ARCHIVE) as archive:
data = json.loads(archive.read("nor60_first_original_cpu.json"))

OUT = HERE / "figures"
OUT.mkdir(exist_ok=True)
plt.rcParams.update({"font.family": "DejaVu Sans", "font.size": 10,
"axes.spines.top": False, "axes.spines.right": False,
"axes.titleweight": "bold", "svg.hashsalt": "NOR60-first-evidence"})
arms = data["arms"]
labels = ["A Original interpreter + original root",
"B Original interpreter + static root",
"C Optimized interpreter + original root",
"D Optimized interpreter + static root"]
ratios = [data["overall"]["source_median_ratio_of_sums_to_original"][a] for a in arms]
colors = ["#87929f", "#657d98", "#2e8791", "#124c60"]
fig, ax = plt.subplots(figsize=(9, 3.9), constrained_layout=True)
y = np.arange(4)
ax.barh(y, ratios, color=colors, height=.52)
for i, arm in enumerate(arms[1:], start=1):
low, high = data["secondary_ten_block_bootstrap"]["descriptive_intervals"][arm]["descriptive_95pct_ten_block_interval"]
ax.errorbar(ratios[i], i, xerr=[[ratios[i]-low], [high-ratios[i]]],
fmt="none", ecolor="#172331", elinewidth=1.5, capsize=4)
for i, value in enumerate(ratios):
ax.text(1.12, i, f"{value:.6f}", va="center", ha="right", fontsize=10, color="#172331")
ax.set_yticks(y, labels)
ax.invert_yaxis()
ax.set_xlim(0, 1.16)
ax.axvline(1, color="#68717a", lw=1, ls=(0, (4, 3)))
ax.set_xlabel("Sum of source median verifier times / original baseline")
ax.set_title("NOR-60: complete signed verification on 60 sources", loc="left", pad=15)
ax.grid(axis="x", color="#e6e9ed", lw=.7)
ax.set_axisbelow(True)
fig.savefig(OUT / "nor60_four_arms.png", dpi=210)
fig.savefig(OUT / "nor60_four_arms.svg", metadata={"Date": None})
plt.close(fig)

fig, ax = plt.subplots(figsize=(8.5, 3.7), constrained_layout=True)
rows = data["source_records"]
for j, stride in enumerate((1, 4, 8)):
group = [r for r in rows if r["source_stride"] == stride]
values = [r["combined_over_original"] for r in group]
offsets = np.linspace(-.22, .22, len(group))
for offset, value, row in zip(offsets, values, group):
color = "#b56d32" if row["program_profile"] == 4 else "#1d6a7d"
marker = "D" if row["program_profile"] == 4 else "o"
ax.scatter(j + offset, value, color=color, marker=marker, s=32, alpha=.86,
edgecolor="white", linewidth=.35, zorder=3)
median = float(np.median(values))
ax.plot([j-.29, j+.29], [median, median], color="#172331", lw=2.1, zorder=4)
ax.axhline(1, color="#68717a", lw=1, ls=(0, (4, 3)))
ax.set_xticks(range(3), ["Dense (s = 1)", "Support stride 4", "Support stride 8"])
ax.set_ylim(0, 1.2)
ax.set_ylabel("Combined / original source median")
ax.set_title("The improvement depends on the source and program", loc="left", pad=13)
ax.grid(axis="y", color="#e6e9ed", lw=.7)
ax.scatter([], [], color="#1d6a7d", s=32, label="Profiles P0–P3")
ax.scatter([], [], color="#b56d32", marker="D", s=32, label="P4: three reciprocal uses")
ax.plot([], [], color="#172331", lw=2.1, label="Within-stride median")
ax.legend(loc="upper right", frameon=True, facecolor="white", framealpha=1,
edgecolor="none", fontsize=8.7)
fig.savefig(OUT / "nor60_source_ratios.png", dpi=210)
fig.savefig(OUT / "nor60_source_ratios.svg", metadata={"Date": None})
plt.close(fig)

with (OUT / "nor60_plotted_values.csv").open("w", newline="") as stream:
writer = csv.writer(stream)
writer.writerow(["source_sha256", "degree", "stride", "profile", "replicate", *arms])
for row in rows:
writer.writerow([row["source_sha256"], row["observed_degree"], row["source_stride"],
row["program_profile"], row["replicate"],
*[row["arm_medians_ms"][a] for a in arms]])
print("Rendered two figures from the original 60-source archive.")
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading