Skip to content

BUG-0002: the compiled engine is the C of record; BUG-0033 registered - #39

Merged
davidesg merged 2 commits into
masterfrom
csrc-al-c
Nov 28, 2026
Merged

davidesg merged 2 commits into
masterfrom
csrc-al-c

Conversation

@davidesg

Copy link
Copy Markdown
Owner

BUG-0002: the compiled engine is the C of record

csrc/internal/ was an old copy of the C whose .inp path had drifted from atsw-gui's. Every vendored file is now atsw-gui's at d603ea1, identical (sha256 in tests/data/homologation.json):

  • drvmlest.c, qnewtopt.c, nlatools.c, elfvarma.c, main.h, likhost.h, optimhost.h
  • lib/lik/{lik.c, lik.h, multshea.c}, lib/optim/lnsrch.c, lib/fuepre/tusmodel.h

Only the binding (drvarma_api.{c,h}, _build_cffi.py) is the package's own. It reads the verdict from opt_termcode/opt_iters, holds qq[1,1] (est_fixed), and returns se_how and the MA wall count. estimate_w(hessian="fd") asks the C for its own fdhess standard errors.

Checks

  • tests/test_inp_path_as_the_c.py: six cases of the C's battery. With the compiled engine, the parameter table is the C's line for line.
  • test_c_oracle.py against a clean atsw-gui at d603ea1: 36 passed.
  • Full battery after merging master: 412 passed, 54 skipped, 6 xfailed.
  • Wheels on 3 platforms (incl. Windows/MSVC) built on this branch: run 46085973888, all green.
  • Siblings against this branch: drtran-python 432 passed, drvec-python 419 passed, 0 failed. They use only elf_c/marma_c/_qnewt, and elfvarma.c is unchanged.

Uncovered

The pure-Python .inp estimator is not yet the C's on four of those cases (BUG-0033, with repro; xfail in the test).

🤖 Generated with Claude Code

https://claude.ai/code/session_01LHFMF3teQWFeXfDJVGj2p5

davidesg and others added 2 commits November 28, 2026 01:05
csrc/internal/ was an old copy of the C, and its .inp path (estimate_w,
Model) had drifted from atsw-gui's: the line search, the boundary
sentinel, the MA wall count. Every vendored file is now atsw-gui's at
d603ea1, identical: drvmlest.c, qnewtopt.c, nlatools.c, elfvarma.c,
main.h, likhost.h, optimhost.h, and lib/lik/{lik.c, lik.h, multshea.c},
lib/optim/lnsrch.c and lib/fuepre/tusmodel.h, which they now need.

drvarma_api.c reads the verdict from opt_termcode/opt_iters, holds
qq[1,1] as the C's .inp path (est_fixed) and returns se_how and the MA
wall count. estimate_w(hessian="fd") asks the C for its own fdhess; with
the compiled engine Model uses it, without it fdhess in Python as before.

- tests/data/homologation.json: each file's sha256, identical to the C's;
  test_c_oracle.py passes whole against d603ea1 (36 passed, ATSW_GUI).
- tests/test_inp_path_as_the_c.py: six cases of the C's battery
  (tests/banco/ref); with the compiled engine the parameter table is the
  C's line for line.
- BUG-0033: the pure-Python .inp estimator is not the C's on four of them
  (PSW ARMA(1,1) stops 0.22 below). Repro; the cases are xfail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LHFMF3teQWFeXfDJVGj2p5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LHFMF3teQWFeXfDJVGj2p5
@davidesg
davidesg merged commit d9e9c71 into master Nov 28, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant