Skip to content
1 change: 1 addition & 0 deletions ara/evidence/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Instead, per the project's own decision, the empirical signal that grounds each
|------|--------|--------|-------------|
| [results/prop_layer.md](results/prop_layer.md) | `cabal build`/`cabal test` on `Lara.Prop` | C01 | Build + property-suite run record for carve-out layer 1 |
| [results/map_bench_2026-09-11.md](results/map_bench_2026-09-11.md) | `make bench-map` at `ad513b5` | C56 (context) | First run of the committed map harness: shipped four-member map 2778.2 µs per full pass, 272.9 µs of it linking and the linked check |
| [results/checker_timing_2026-11-10.md](results/checker_timing_2026-11-10.md) | `make bench-container` batches at `018a2ae` + `scripts/bench_compare.py` | O221 (staged) | 25 container runs (10 unpinned, 5 with host busy loops, 10 pinned to the VM's isolated CPU) with in-run load; ~200 µs check + render, 1.2–2.3% run spread, +5.8% under host load; two failed 0.5-load quiet windows |
| [results/executable_nd_adapter.md](results/executable_nd_adapter.md) | Lean/Haskell ND adapter gates | C03, C05 | Exact replay adequacy, proved Atom codec inverse, shared golden vectors, and full gate results |
| [results/strict_certificate_frontend.md](results/strict_certificate_frontend.md) | S1 `.lara` → elaborate → `nd@1` replay + both-driver differential | C03, C05 | Policy-carried theory and surface assurance reach an accepted, justified verdict; missing theory rejects R13 |
| [results/numeric_quarantine_parity.md](results/numeric_quarantine_parity.md) | Real Haskell/Lean drivers + full regression gates | C12, C25 | Shared `canonNum` closes false-justified numeric divergence; two blocked queries retain positional byte parity |
Expand Down
94 changes: 94 additions & 0 deletions ara/evidence/results/checker_timing_2026-11-10.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Checker timing batches, 2026-11-10

Run record for `docs/checker-timing.md`. Trace nodes: `N425_quiet_window_unreachable`, `N426_bench_repeat_and_report`, `N427_checker_timing_batches`.

- Commit: `018a2ae1e6309351b23f9768f5f1bb2b700a990c` (branch `docs/checker-timing`, PR #69), clean tree; Haskell CI run 42882314673 completed success on that exact SHA.
- Host: Apple M5 Pro, 64 GB RAM, macOS 27.2 (Darwin 27.2.0).
- VM: OrbStack 2.2.5, Docker engine 29.8.2, kernel 7.2.12-orbstack, 18 virtual CPUs; `/sys/devices/system/cpu/isolated` read `17`.
- Image: `sha256:62a8d63db1220caaa072fbe4f2aacc19ee9f25d12d8d8457948d45e100474754` (GHC 9.14.1, Lean 4.32.0).
- Conditions: `--quiet-seconds 0`; Spotlight indexing active; `corespotlightd` (PID 1076) demoted with `taskpolicy -b` for all three batches and restored afterwards; desktop apps open.
- Run directories: `measurements/bench-runs/` on the measuring host (gitignored).

## Failed quiet-window attempts at 9c3f6fa

| Run directory | Status | Load samples | Load min | Load median | Load max |
| --- | --- | ---: | ---: | ---: | ---: |
| `20261110T054940Z-9c3f6fa65f32` | failed: host did not remain below load 0.5 for 120.0s within 3600.0s | 720 | 1.30 | 2.64 | 7.16 |
| `20261110T074841Z-9c3f6fa65f32` | failed: host did not remain below load 0.5 for 120.0s within 3600.0s | 720 | 0.83 | 2.11 | 6.49 |

## `bench_compare.py` output, verbatim

Unpinned, batch `20261110T191630Z`:

```
| Run | Pinned CPUs | Status | Control median (µs) | Load during run (min / median / max) |
| --- | --- | --- | ---: | --- |
| `20261110T191630Z-018a2ae1e630-r01` | - | included | 202.3 | 2.41 / 2.54 / 3.00 |
| `20261110T191657Z-018a2ae1e630-r02` | - | included | 204.1 | 2.84 / 2.92 / 3.08 |
| `20261110T191725Z-018a2ae1e630-r03` | - | included | 204.0 | 2.72 / 2.84 / 2.94 |
| `20261110T191751Z-018a2ae1e630-r04` | - | included | 203.3 | 2.75 / 2.87 / 2.98 |
| `20261110T191818Z-018a2ae1e630-r05` | - | included | 203.6 | 2.76 / 2.82 / 2.98 |
| `20261110T191845Z-018a2ae1e630-r06` (table) | - | included | 201.0 | 2.76 / 2.80 / 2.98 |
| `20261110T191912Z-018a2ae1e630-r07` | - | included | 200.2 | 2.63 / 2.76 / 2.94 |
| `20261110T191938Z-018a2ae1e630-r08` | - | included | 199.5 | 2.63 / 2.82 / 2.94 |
| `20261110T192004Z-018a2ae1e630-r09` | - | included | 199.9 | 2.69 / 2.84 / 2.91 |
| `20261110T192030Z-018a2ae1e630-r10` | - | included | 200.6 | 2.69 / 2.85 / 2.89 |

Across 10 included runs the control-row median is 201.6 µs (range 199.5 to 204.1 µs, 2.3% of the median). Per unit, the range across runs is 5.8% of the unit's median at the median unit and 23.5% at most.
```

Unpinned with four host `yes > /dev/null` loops, batch `20261110T192100Z`:

```
| Run | Pinned CPUs | Status | Control median (µs) | Load during run (min / median / max) |
| --- | --- | --- | ---: | --- |
| `20261110T192100Z-018a2ae1e630-r01` | - | included | 208.0 | 3.03 / 3.83 / 4.30 |
| `20261110T192128Z-018a2ae1e630-r02` (table) | - | included | 213.2 | 4.30 / 4.59 / 4.97 |
| `20261110T192156Z-018a2ae1e630-r03` | - | included | 215.3 | 4.97 / 5.28 / 5.78 |
| `20261110T192224Z-018a2ae1e630-r04` | - | included | 211.6 | 5.78 / 6.13 / 6.27 |
| `20261110T192252Z-018a2ae1e630-r05` | - | included | 214.1 | 6.17 / 6.37 / 6.71 |

Across 5 included runs the control-row median is 213.2 µs (range 208.0 to 215.3 µs, 3.4% of the median). Per unit, the range across runs is 6.6% of the unit's median at the median unit and 12.8% at most.
```

Pinned to VM CPU 17, batch `20261110T192322Z`:

```
| Run | Pinned CPUs | Status | Control median (µs) | Load during run (min / median / max) |
| --- | --- | --- | ---: | --- |
| `20261110T192322Z-018a2ae1e630-r01` | 17 | included | 200.1 | 5.16 / 5.96 / 6.71 |
| `20261110T192349Z-018a2ae1e630-r02` | 17 | included | 199.8 | 3.92 / 4.45 / 5.16 |
| `20261110T192415Z-018a2ae1e630-r03` | 17 | included | 199.6 | 3.38 / 3.64 / 3.92 |
| `20261110T192441Z-018a2ae1e630-r04` | 17 | included | 200.9 | 3.38 / 3.47 / 3.52 |
| `20261110T192507Z-018a2ae1e630-r05` | 17 | included | 199.5 | 3.32 / 3.39 / 3.52 |
| `20261110T192533Z-018a2ae1e630-r06` | 17 | included | 200.3 | 3.20 / 3.39 / 3.59 |
| `20261110T192559Z-018a2ae1e630-r07` | 17 | included | 200.2 | 3.25 / 3.35 / 3.59 |
| `20261110T192626Z-018a2ae1e630-r08` | 17 | included | 199.5 | 3.25 / 3.78 / 4.19 |
| `20261110T192652Z-018a2ae1e630-r09` (table) | 17 | included | 199.6 | 3.36 / 3.56 / 3.70 |
| `20261110T192718Z-018a2ae1e630-r10` | 17 | included | 198.5 | 3.00 / 3.20 / 3.41 |

Across 10 included runs the control-row median is 199.7 µs (range 198.5 to 200.9 µs, 1.2% of the median). Per unit, the range across runs is 3.9% of the unit's median at the median unit and 9.1% at most.
```

## Published table run `20261110T192652Z-018a2ae1e630-r09`, `performance.md` verbatim

```
| | median | worst |
| --- | ---: | ---: |
| Corpus unit, end-to-end (µs) | 437.6 | 472.4 |
|   parse (µs) | 238.4 | 248.8 |
|   check + render, pre-decoded (µs) | 199.8 | 226.5 |
|   validate (µs) | 0.1 | 0.2 |
|   check (µs) | 194.0 | 221.4 |
|   compile (µs) | 0.0 | 0.6 |
|   evaluate (µs) | 0.6 | 1.1 |
| Per-artifact total (27 artifacts, µs) | 878.7 | 1751.4 |
| Framework size (nodes / edges) | 0 / 0 | 2 / 1 |
| Lean reference driver, subprocess (ms) | 1.1 | 1.3 |
| | | |
| 660-record harness, one full pass (ms) | 172.2 | |
```

## Reading

The batches ran in sequence (unpinned, busy, pinned), so the pinned batch's narrower spread is confounded with time order and with the one-minute load average left by the stopped busy loops. Every busy run was slower than every unpinned run (208.0 µs minimum against 204.1 µs maximum). The selection rule fixed in the plan before the runs (`plans/checker-timing-run.md` as of commit `15c9d45`, removed once executed: keep unpinned unless pinned has a narrower range and a median that is not higher) chose the pinned batch.
2 changes: 1 addition & 1 deletion ara/logic/solution/constraints.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ disagreement; dependent claims surface as `gap`).
does not transfer to the concrete-syntax Haskell parser; the QuickCheck round-trip
(`SyntaxSpec`, 2000 iters) remains the surface-syntax conformance evidence.

- **The two checking-time columns are different protocols and must never be ratioed (from O31).**
- **The two checking-time columns are different protocols and must never be ratioed (from O31).** <!-- CONFLICT: see N428_hs_check_magnitude_conflict (2026-11-10 measurements put hs_check near 200 µs, not ~7 µs) -->
`hs_check` is in-process, decode excluded, verdict forced (median ~7 µs); `lean_wall` is
subprocess wall time including startup + decode (median ~2.6 ms, trace N96). The ~370× gap is
process startup, not semantics — any cross-driver speed claim needs a same-protocol measurement.
Expand Down
21 changes: 21 additions & 0 deletions ara/staging/observations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4454,3 +4454,24 @@ observations:
promoted_to: logic/claims.md:C58
crystallized_via: verbal-affirmation
stale: false
- id: O221
timestamp: '2026-11-10T19:40:00Z'
provenance: ai-suggested
content: >-
On the Apple M5 Pro desktop under OrbStack, the bench control row (check + render, pre-decoded)
repeats within about 1-2% across back-to-back container runs under steady host load, but host
load itself moves it: four extra busy processes raised it about 6%, beyond the run spread. Run
agreement on this host therefore bounds repeatability, not interference, and checker timing
claims from it should be stated as magnitudes under recorded load. Whether pinning to the VM's
isolated CPU reduces spread is not separated from batch order.
context: >-
Three batches at 018a2ae (N427) after the quiet-window gate proved unreachable (N425). The
researcher has not yet commented on the results. CONFLICT: see N428_hs_check_magnitude_conflict
for the stale ~7 us figure in logic/solution/constraints.md.
potential_type: constraint
bound_to:
- N427_checker_timing_batches
promoted: false
promoted_to: null
crystallized_via: null
stale: false
82 changes: 82 additions & 0 deletions ara/trace/exploration_tree.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11777,3 +11777,85 @@ tree:
status: resolved
also_depends_on:
- N423_online_fdr_proved
- id: N425_quiet_window_unreachable
type: dead_end
title: Wait for a quiet desktop host before timing the checker
provenance: ai-executed
timestamp: '2026-11-10T08:48:00Z'
hypothesis: >-
The publication runner's default gate (macOS one-minute load average below 0.5 for 120
continuous seconds, waiting up to 3600 s) can be met on the working Apple M5 Pro desktop if
other apps are closed.
failure_mode: >-
Two one-hour attempts at 9c3f6fa timed out before any timing: 720 load samples each, lowest
readings 1.30 and 0.83, with Spotlight indexing (corespotlightd), gh and desktop apps running.
The gate also sampled load only before docker run, so it said nothing about the timed interval.
lesson: >-
On a shared desktop, replace the pre-run gate with repeated runs, load sampled during each timed
run, and a report of the spread; a quiet gate needs a dedicated host.
evidence:
- ara/evidence/results/checker_timing_2026-11-10.md
status: resolved
- id: N426_bench_repeat_and_report
type: decision
title: Repeat-and-report timing protocol with verified isolated-CPU pinning
provenance: user-revised
timestamp: '2026-11-10T19:00:00Z'
choice: >-
Drop the load gate for publication batches (--quiet-seconds 0); run the container N times per
batch with host load sampled during each timed run; keep every run and exclude only non-success
runs; choose the table run by a lower-median rule and the batch by a rule fixed before the runs;
pin only to a Docker VM CPU the guest lists in /sys/devices/system/cpu/isolated; state that run
agreement shows repeatability, not absence of interference. Implemented in 018a2ae
(scripts/bench_container.py, scripts/bench_compare.py); protocol in docs/evaluation.md.
alternatives:
- Keep the 0.5 load gate and wait for an idle machine (N425)
- Reserve physical cores on macOS (no CPU affinity on Apple Silicon; VM vCPUs are host threads)
- Move the run to a dedicated Linux host with isolcpus or cset shield
- Count instructions instead of wall time
evidence:
- docs/evaluation.md
- scripts/bench_container.py
- scripts/bench_compare.py
status: resolved
also_depends_on:
- N425_quiet_window_unreachable
- id: N427_checker_timing_batches
type: experiment
title: Three container timing batches at 018a2ae on the Apple M5 Pro
provenance: ai-executed
timestamp: '2026-11-10T19:27:00Z'
result: >-
25 runs, none failed. Control row (check + render, pre-decoded) median across runs: unpinned
201.6 us (range 2.3%, load median 2.83), four host busy loops 213.2 us (range 3.4%, load median
5.28), pinned to VM CPU 17 199.7 us (range 1.2%, load median 3.52). Every busy run was slower than
every unpinned run. Published table run 20261110T192652Z-018a2ae1e630-r09: end to end 437.6 us,
check + render 199.8 us, Lean subprocess 1.1 ms, harness pass 172.2 ms. Batches ran in sequence,
so the pinned batch's narrower spread is confounded with time order and lingering busy-loop load.
evidence:
- ara/evidence/results/checker_timing_2026-11-10.md
- docs/checker-timing.md
status: resolved
also_depends_on:
- N426_bench_repeat_and_report
- id: N428_hs_check_magnitude_conflict
type: decision
title: Stale hs_check magnitude in the checking-time constraint
provenance: ai-suggested
timestamp: '2026-11-10T19:40:00Z'
choice: >-
Unresolved. logic/solution/constraints.md (checking-time columns entry, from O31 and N96) states
an hs_check median of ~7 us and a ~370x gap to lean_wall. On 2026-11-10 the bench control row
measured ~200 us per unit (N427), measure.hs single-shot hs-check-ns had median 186 us at 4cca881,
and the frozen v8 report.json has median 344 us. The constraint's rule (never ratio the two
columns) is unaffected; only its stated magnitudes conflict. Left for the researcher to adjudicate.
alternatives:
- Revise the constraint's magnitudes to the current measurements
- Keep the historical N96 figures with an explicit date
evidence:
- ara/evidence/results/checker_timing_2026-11-10.md
- measurements/frozen/report.json
status: unresolved
also_depends_on:
- N96
- N427_checker_timing_batches
6 changes: 6 additions & 0 deletions ara/trace/pm_reasoning_log.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1945,3 +1945,9 @@ entries:
notes:
- Record N424 as an experiment (proof plus gates) depending on N423. It closes the product-law gap N423 recorded; N423 itself is left as written because the trace is append-only.
- No claim, staged observation or constraints edit. The weaker premise is a mechanized standard result documented in docs/theory-process.md, and the constraints Open line never mentioned the premise.
- turn: 2026-11-10_001#1
notes:
- Record N425 as a dead_end (the 0.5-load gate never opened in two hours) and N426 as a user-revised decision; the AI proposed the protocol and the researcher directed implementing and running it.
- Record N427 as an experiment and stage O221 as a constraint candidate. Not crystallized: the researcher has not commented on the results, and the pinning comparison is confounded by batch order.
- Flag the ~7 us hs_check magnitude in constraints.md as a CONFLICT with N428 instead of rewriting it, per the contradiction rule; the never-ratio rule itself stands.
- No claim touched. C32 and C33 report parse-latency deltas under their own protocols and are not contradicted by an absolute timing record.
81 changes: 81 additions & 0 deletions ara/trace/sessions/2026-11-10_001.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
session:
id: 2026-11-10_001
date: '2026-11-10'
started: 2026-11-10T05:49
last_turn: '2026-11-10T19:40:00Z'
turn_count: 1
summary: 'Paper-side reruns and checker timing: deterministic gates reproduced v8 at 4cca881 after
harness fixes (#67, #68); the 0.5-load quiet window proved unreachable on the desktop host; a
repeat-and-report protocol with verified isolated-CPU pinning landed at 018a2ae (PR #69) and
three timing batches put check + render near 200 us per corpus unit.'
events_logged:
- turn: 1
type: dead_end
id: N425_quiet_window_unreachable
routing: direct
provenance: ai-executed
summary: Two 1 h quiet-window attempts at 9c3f6fa never reached load < 0.5 (min 0.83)
- turn: 1
type: decision
id: N426_bench_repeat_and_report
routing: direct
provenance: user-revised
summary: No load gate; N runs with in-run load; keep all runs; predeclared table and batch rules; verified isolated-CPU pinning
- turn: 1
type: experiment
id: N427_checker_timing_batches
routing: direct
provenance: ai-executed
summary: 25 runs at 018a2ae; control row 201.6 / 213.2 (busy) / 199.7 (pinned) us; spreads 2.3 / 3.4 / 1.2%
- turn: 1
type: decision
id: N428_hs_check_magnitude_conflict
routing: direct
provenance: ai-suggested
summary: Unresolved conflict between constraints.md ~7 us hs_check and ~200 us measured
- turn: 1
type: observation
id: O221
routing: staged
provenance: ai-suggested
summary: Run spread bounds repeatability, not interference; host load moves the control row ~6%
ai_actions:
- turn: 1
action: Reran paper evaluation gates at 4cca881 (axiom audit, differentials, presentation parity,
surface conformance, measure.hs, claim-support); report and ablation hashes matched frozen v8
provenance: ai-executed
files_changed: []
- turn: 1
action: 'Fixed harness drift: D7 inquiry inputs excluded from core anchor discovery (#67); bench image
copies cbits and builds only lara-driver (#68)'
provenance: ai-executed
files_changed:
- scripts/differential.sh
- scripts/gen-anchor-manifest.sh
- containers/bench/Dockerfile
- turn: 1
action: Implemented repeated runs, in-run load sampling, verified --cpuset-cpus and bench_compare.py
(018a2ae); ran three batches; wrote docs/checker-timing.md and the protocol in docs/evaluation.md
provenance: ai-executed
files_changed:
- scripts/bench_container.py
- scripts/bench_compare.py
- scripts/test_bench_container.py
- docs/checker-timing.md
- docs/evaluation.md
- docs/README.md
- scripts/bench.hs
- ara/evidence/results/checker_timing_2026-11-10.md
claims_touched: []
logic_revisions: []
key_context:
- turn: 1
excerpt: 'Researcher: "finish task 1 and run and update doc. pin the task 1''s commit. and I will create
merge commit pr instead of squash"'
open_threads:
- 'Refresh the paper''s tables/performance.tex from the published table run (#70)'
- Adjudicate N428 (stale hs_check magnitude in constraints.md)
- Interleave pinned and unpinned runs before adopting pinning as the default
- Human review of the corpus-study annotations remains pending in the paper
ai_suggestions_pending:
- O221 (timing claims as magnitudes under recorded load)
8 changes: 8 additions & 0 deletions ara/trace/sessions/session_index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -783,3 +783,11 @@ sessions:
events_count: 4
claims_touched: []
open_threads: 1

- id: 2026-11-10_001
date: '2026-11-10'
summary: Deterministic paper reruns reproduced v8 after harness fixes; quiet-window gate unreachable on the desktop; repeat-and-report timing protocol landed at 018a2ae and three batches put check + render near 200 us per corpus unit.
turn_count: 1
events_count: 5
claims_touched: []
open_threads: 4
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ The [worked-example catalogue](../examples/README.md) lists executable artifacts
| --- | --- |
| [Corpus lowering map](corpus-map.md) | How research-artifact content becomes Lara declarations |
| [Evaluation](evaluation.md) | Performance, mutation and localization contracts and frozen inputs |
| [Checker timing](checker-timing.md) | Dated publication timing record for the Haskell checker: commit, host, every run and its load, spread and claim limits |
| [Measured-input freeze](../measurements/frozen/evidence-measured-inputs-v2.md) | Certified-evidence evaluation inputs |

## How is the implementation maintained?
Expand Down
Loading
Loading