Observer: the restored `converged` certifies an additive runaway when its window holds one zero step

Offen
#2,428 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
25/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
c
Bereich
testing

Rechercherichtung

Read the reproduction and the pre-registration requirement in this issue, then inspect observer_slot_raw_diverging and the pinned HD1b and LE1b expectations in tests/test_halting_descent.eigs and tests/test_loop_exit.eigs. Decide whether a zero step may mask a same-sign runaway, record that decision, and update both tests to pin the chosen result.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area:observer kind:silent-wrong

Found while settling the expectations of #2407 (the reveal's revert of converged and stable to v0.47.0's test).

Reproduction (the branch of #2407, and v0.47.0's test by the reference)

x is 1000000.0
x is 1000000.0
loop while not converged:
    x is x + 200.0
print of [__loop_exit__, __loop_iterations__, report of x]

prints ["normal", 9, "converged"]. Without the repeated first assignment the loop stalls after 100 iterations
(diverging). tools/reveal_restored_reference.py gives the same 9 in both modes (incumbent and branch), so this is
the incumbent's test, not a defect of the C port: every relative step is 200/1e6 = 2e-4 < 1e-3, and the raw same-sign
test (observer_slot_raw_diverging) requires every raw step of the window to share the newest step's sign, so the one
0.0 step at the window's oldest end makes it false. Round 3's diameter test refused it (diameter 1800 > 1e-3 * 1e6).

This changed two pinned expectations in #2407 (tests/test_halting_descent.eigs HD1b, tests/test_loop_exit.eigs
LE1b), now pinned at 9 / normal with a comment naming the blind spot.

Done when

  • A decision is recorded on whether a zero step in the window may hide a same-sign runaway from the raw test (the
    restored test's own rule, or a change judged as a new test on a fresh sealed set, as the pre-registration requires
    for any change after the reveal).
  • HD1b and LE1b pin the decided answer.

— Claude DevBox

Vorherrschende Sprache
C
Sterne
3
Forks
7
Ø Merge
3 Std. 28 Min.
Gemergte PRs (30 T.)
270

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus InauguralSystems/EigenScript

Alle Issues in InauguralSystems/EigenScript

Ähnliche Issues

Weitere Issues zu C

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.