SICurator · Example report

Beta SICurator v0.2.8 · run 20261124T142811Z-5deb19

A conservation check reproduced a real energy drift.

This page is a public evidence bundle, not a marketing sketch. Every number comes from a SICurator 0.2.8 run against a small harmonic-oscillator stepper that is documented as symplectic and implemented as forward Euler. The first check failed. After a known repair, the same check passed. That is not a proof that the repaired stepper is correct in general.

Reproduced failure spec attempt 1 · test_energy_conservation No failure found in tested scope spec attempt 2, after the repair No failure found in tested scope attack probe test_attack_step_zero_dt Not checked bandit, semgrep, units, convergence, four other functions Product status after the repair: verified · guard CLEAR · confidence high (4 points, fixed rules)

What this example is

The package is examples/orbitlab from the SICurator 0.2.8 source (tag v0.2.8, commit 64e9ac764fb6b2cdc44a90ed8124859c1d394333). It is a compact, seeded demonstration of a standard numerical defect: forward Euler shipped under a symplectic / energy-conserving contract. The defect itself is real — energy grows — and is the kind of bug a short hand check can miss. This is not a run against an independent third-party repository, and it did not use a live language model. The builder step used SICurator’s built-in mock provider, which already knows this orbitlab repair.

The interesting evidence is the conservation check on the original code. That check is ordinary Python. You can rerun it without trusting the agent, the mock provider, or this page.

The original code

orbitlab.integrator.step is documented as a symplectic update whose total energy stays conserved up to a small bounded error, with no secular drift. The implementation is forward Euler:

def step(state, dt, k=1.0, m=1.0):
    x, v = state
    a = -(k / m) * x
    x_new = x + dt * v
    v_new = v + dt * a
    return (x_new, v_new)

def total_energy(state, k=1.0, m=1.0):
    x, v = state
    return 0.5 * m * v * v + 0.5 * k * x * x

On a single modest step the drift looks small. Starting at x=1.0, v=0.0, dt=0.05, energy goes from 0.5 to 0.50125 — a change of 0.00125. Over a longer horizon it is obvious.

The intent and the spec

Intent, taken from the official orbit-energy case:

The harmonic oscillator integrator is supposed to conserve total energy. Make that conservation hold.

SICurator’s scientific computing skill pack bound one property check, test_energy_conservation (template conservation). Risk score 0 (low), auto-approved because the checks come from that pack. The invariant, in the spec’s words: orbitlab.integrator.step must conserve orbitlab.integrator.total_energy to a relative tolerance of 1e-3 over 80 steps of size 0.05.

@settings(max_examples=8, deadline=None, derandomize=True)
@given(
    st.floats(min_value=0.5, max_value=1.0, allow_nan=False, allow_infinity=False),
    st.floats(min_value=-1.0, max_value=1.0, allow_nan=False, allow_infinity=False),
)
def test_energy_conservation(x, v):
    """Total energy must not drift over a fixed horizon."""
    state = (x, v)
    initial = total_energy(state)
    for _ in range(80):
        state = step(state, 0.05)
    final = total_energy(state)
    assert abs(final - initial) <= 1e-3 * max(abs(initial), 1.0)

Templates that were not claimed by this intent, and were not run: convergence_order, unit_scale, determinism_seed, regression, sign_symmetry.

The reproduced failure

Spec attempt 1 ran that test against the original stepper, in a subprocess sandbox, before any repair. Hypothesis reported that the test failed for the generated examples, and shrank to this case (the comment “or any other generated value” is Hypothesis’s wording that the failure was not unique to one corner):

ItemValue
Failing inputx = 1.0, v = 0.0
Steps and step size80 × 0.05
Initial energy (expected to stay near this)0.5
Final energy (actual)0.6105489767374579
abs(final − initial)0.1105489767374579
Allowed tolerance, 1e-3 × max(abs(initial), 1.0)0.001
Assertion0.1105489767374579 ≤ 0.001 → failed
JUnit timestamp24 Nov 2026, 9:28:11 AM ET (America/New_York)

Plain result label for this step: Reproduced failure. The product recorded it as a failing check on spec attempt 1. The same numbers were re-checked independently by running the generated test and a short script against the snapshot tree.

How to reproduce this finding without trusting the agent

You do not need SICurator, a model, or this website. Use the snapshot of the original package and the generated test from the evidence bundle (published next to this page):

PYTHONPATH=snapshot pytest checks/spec/test_sicurator_spec.py -q

That command failed in this environment with the same assertion and the same failing input, x=1.0, v=0.0. A still smaller command, using only the standard library:

PYTHONPATH=snapshot python -c "
from orbitlab.integrator import step, total_energy
state = (1.0, 0.0)
initial = total_energy(state)
for _ in range(80):
    state = step(state, 0.05)
final = total_energy(state)
print(initial, final, abs(final - initial), 1e-3 * max(abs(initial), 1.0))
"

Expected print:

0.5 0.6105489767374579 0.1105489767374579 0.001

To replay the whole stored bundle without calling a model (this restores the snapshot, applies the recorded diff, and re-runs the checks):

sicurator replay path/to/20261124T142811Z-5deb19

A standalone script is in reproduce_failure.py. Raw artifacts, including spec-1.xml, the generated test, the original stepper, confidence.md, guard.md, and report.pdf, plus the recorded ledger.jsonl, are published with this page.

What happened after the failure

The mock provider then applied a velocity-Verlet update to orbitlab/integrator.py. Spec attempt 2 ran the same conservation test against the repaired stepper: no failure found in tested scope (product: passed). An independent rerun measured energy 0.49982088676869796 after the same 80 steps from (1.0, 0.0), a drift of about 0.000179, inside the 0.001 tolerance. The attacker ran one probe, test_attack_step_zero_dt (a zero step must return the state unchanged, at (0.4, -0.25)): no failure found in tested scope. The guard scan of the final tree was CLEAR, with Rule 0 and G1–G11 each PASS. Bandit and semgrep were not checked (not requested). sicurator ledger verify reported the recorded run ledger as ok (24 entries, 1 seal; signatures checked).

The product labeled the finished run verified, with confidence high (4 points) from two fixed rules: every property check passed (+2), and the attacker finished clean after at least one probe (+2). That score is not a calibrated probability, and it describes the run after the repair — not the original failing stepper.

Environment

ItemRecorded value
SICurator0.2.8, tag v0.2.8, source commit 64e9ac764fb6b2cdc44a90ed8124859c1d394333
Python3.11.18
pytest / Hypothesis9.2.0 / 6.170.17
OSLinux 6.12.113+ x86_64, glibc 2.41
Providermock (manifest: model null; “0 tokens, no AI model used”)
Sandboxsubprocess (not Docker). Limits recorded in the manifest: 60 CPU seconds, 2048 MB address space, 60 s wall clock, 128 pids, memory enforcement on. The 60 s wall cap is the demo-tier timeout; the CLI default is 90 s.
Approvalauto, risk 0, threshold 0
Wall / sandbox time3.0077 s / 2.9679 s
Commandsicurator run "<intent above>" --repo …/orbitlab --provider mock --sandbox subprocess --approve auto --out … --pdf

What this does not establish

  • It does not prove the repaired stepper is symplectic, or that energy is conserved for every timestep, horizon, mass, or spring constant. The check covers 8 derandomized Hypothesis examples with x ∈ [0.5, 1.0], v ∈ [−1, 1], 80 steps of size 0.05, and a 1e-3 tolerance.
  • It does not check unit conversion, convergence order, sign symmetry, seed determinism, or a regression against a reference implementation. Those templates were not claimed.
  • It does not check orbitlab.units.ev_to_joules, joules_to_ev, orbitlab.convergence.solve_decay, or analytic_decay. The confidence report lists those as unverified, outside this diff and not named by the spec or the attacker.
  • It does not evaluate a live model’s ability to find or repair the bug. The repair came from the mock provider, which already knows this example.
  • A guard result of CLEAR is a static scan of the final tree, not a guarantee of safety. Bandit and semgrep were not run. G11 PASS means that scan found no code that truncates, overwrites, rewrites, or deletes an agent ledger; it is not a promise that a ledger cannot be deleted by the OS user.
  • A confidence label of “high” is a fixed-rule score on the post-repair run. It is not a proof of correctness.
  • The subprocess sandbox used here is not a security boundary. See the security and execution model.

SICurator is in beta. Results depend on the checks that actually ran; they do not guarantee correctness.