Skip to content

Add programmable CUDA boosting and verified objective comparisons - #25

Merged
jxucoder merged 157 commits into
mainfrom
codex/v1-retrospective-plan
Sep 8, 2026
Merged

jxucoder merged 157 commits into
mainfrom
codex/v1-retrospective-plan

Conversation

@jxucoder

@jxucoder jxucoder commented Sep 8, 2026

Copy link
Copy Markdown
Owner

This change adds a programmable Python/CUDA boosting foundation: owned device
storage, named fields, histograms, split/feasibility/routing/leaf operations,
trees and resident transactions now support squared, Normal, binary and Poisson
recipes. Objective-owned loss-change bounds keep training acceptance, best-model
selection and patience separate even when reported losses round to the same value.

CPU execution gains verified incremental proposal evaluation, reusable encodings,
structural stopping results and bounded trace retention. The branch also preserves
the planning, failures and raw evidence accumulated since PR #24; most changed
files are evidence rather than production code.

Validation and evidence

  • Local CPU regression: 2,292 passed, one platform skip, 880 GPU/benchmark and
    ninety explicitly historical full-loss deselections. All ninety settings have
    active objective-comparison replacements, verified by collection and execution.
    Full production/test Ruff, strict MkDocs and wheel/sdist builds pass.
  • Run 12:
    571/571 real T4 cases pass, including 153 new GLM cases and 418 regressions.
    All 77 artifacts are retained; offline audit verifies 246 loss-change bounds and
    replays all 32 final/best models from lossless input bytes.
  • Normal comparison/revalidation:
    bounded revised coverage is complete across two runs, with the original failed
    verdict and historical disagreements preserved.
  • Run 11 cost evidence:
    all 474 T4 checks and three frozen internal cost gates pass. Parallel field
    validation lowers synthetic 100,000-row squared warm fit time from 13.513 to
    8.947 seconds (33.79%), preserving model/prediction bytes. This is an internal
    synthetic comparison, not external-library parity or formal E4.
  • CI now fetches full history for source-provenance replay, selects CPU checks on
    hosted CPU runners and builds documentation strictly. The manual GPU workflow
    remains non-executing; no new paid GPU/model invocation is part of this PR.
  • The first hosted CPU run
    exposed nine platform-sensitive legacy reporting/decision assertions. Current
    tests now exercise objective comparisons under native and controlled reporting;
    original full-loss sources and hardware evidence remain unchanged. The matrix
    retains all host/version outcomes with fail-fast disabled.
  • The second hosted run
    passes both Linux cells and identifies four one-ULP reporting differences on
    macOS. Replay now pins original artifact bytes and requires exact decisions,
    settings and source identities, with at most one ULP for recomputed reporting
    scores. Tests reject larger errors and changes to coefficients or model prefixes.

Scope and remaining work

This remains an experimental foundation, not a drop-in replacement or completed
v1 release. Required multiclass, AFT and vector-topology CUDA cells, compatible
device train-many, real application quality and formal E4 remain open. Authoring
and adoption studies are deferred under Sprint 101; retained study infrastructure
does not constitute author/adoption evidence. All R/C/A requirements remain.

Merge strategy

Use Create a merge commit. Evidence tests resolve the original execution Git
SHAs; squash or rebase merging would break their availability in future clean
checkouts. Review the hosted Linux/macOS, Python 3.10/3.12 and documentation checks
before merging. This PR does not publish a package or dispatch hardware.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-08T14:53:49.393184Z 7b18667 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7b18667daa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 17 to +20
- uses: actions/checkout@v4
with:
# Historical execution SHAs are part of the committed evidence contract.
fetch-depth: 0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve execution commits in reachable history

A fresh checkout of this commit cannot recover the execution commits merely by setting fetch-depth: 0: 9da718c has only parent 47108db, and its reachable history excludes the manifest revisions fe12beb and dd84247. The non-GPU CI command nevertheless runs test_glm_freeze.py and test_validation_freeze.py, which call git show on those revisions, so these evidence checks fail once the separate development branch is unavailable. Merge the execution history as parents, retain reachable refs, or make the verifiers use committed source archives instead.

AGENTS.md reference: AGENTS.md:L151-L155

Useful? React with 👍 / 👎.

@jxucoder
jxucoder merged commit 167ed53 into main Sep 8, 2026
5 checks passed
@jxucoder
jxucoder deleted the codex/v1-retrospective-plan branch September 8, 2026 15:13
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