Skip to content

feat(corpus): expand throughput-phase corpus with validated bundles - #2382

Merged
joeharris76 merged 23 commits into
developfrom
fix/throughput-corpus-expansion
Oct 7, 2026
Merged

joeharris76 merged 23 commits into
developfrom
fix/throughput-corpus-expansion

Conversation

@joeharris76

@joeharris76 joeharris76 commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

Promote four validator-clean DuckDB TPC-H SF1 throughput bundles
(streams 3, validation passed) into results-data/bundles with
maintainer manifests. Teach generate_corpus_inventory.py to extract
benchmark test_type as phase and summarize by_phase, so throughput
coverage is visible (4 throughput vs 253 power). Regenerate
corpus-inventory.json.

Soundness review:

Promote four validator-clean DuckDB TPC-H SF1 throughput bundles
(streams 3, validation passed) into results-data/bundles with
maintainer manifests. Teach generate_corpus_inventory.py to extract
benchmark test_type as phase and summarize by_phase, so throughput
coverage is visible (4 throughput vs 253 power). Regenerate
corpus-inventory.json.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 26, 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-26T02:39:03.442849Z 03d35ec 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: 03d35ec1a6

ℹ️ 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 thread results-data/bundles/tpch_sf1_duckdb_sql_20260811_152216_cfe0f568.json Outdated
The four throughput bundles added earlier carry run timestamps of
2026-08-11, 2026-08-12, and 2026-08-22, all before the 2026-08-23
measurement trust boundary recorded in results-data/CORPUS_NOTES.md.
That note withdraws pre-boundary measurements and permits restoration
only through fresh runs, so those bundles are removed.

They are replaced with four genuinely generated post-boundary runs:
DuckDB TPC-H SF1 throughput (load,throughput phases, 3 streams,
seed 20260709, official mode), executed locally on 2026-09-25 with
validation passed and 66/66 queries passing. Each carries a
maintainer-run manifest with its SHA-256. The corpus inventory is
regenerated (257 bundles: 253 power, 4 throughput).

Validation: results-data/validate_corpus.py passes (all 42 cohorts meet
the >=3-identity floor); submission validator passes 4/4 with no
errors, warnings, or overrides; inventory --check is current;
trust-boundary and inventory unit tests pass (24 passed).
Regenerate the corpus inventory for the merged bundle set (develop
withdrawals plus the new post-boundary throughput runs); all 42 cohorts
meet the identity floor.
The corpus expansion adds four DuckDB TPC-H SF1 throughput bundles that
the committed seed does not cover, so the bijection and union tests fail.
Regenerate the seed against the live accepted ref: the accepted bundle set
is unchanged at 244, and the four new bundles enter as legacy overlay
entries pending mirror acceptance.
Resolve phase via benchmark.test_type with phases-object fallback and
never emit None, so explicit nulls cannot crash inventory sorting.
Throughput runs move into phase-suffixed cohorts instead of polluting
power cohorts, and the seed spec records the segregation rule.
The prior Develop PR run completed its test job but its aggregator
stayed queued for over an hour, blocking rerun-failed-jobs. Retrigger
with an empty commit; squash-merge drops it from history.
Regenerate the corpus inventory from the merged tree so the four
post-boundary throughput bundles coexist with the current develop
corpus.
@joeharris76

Copy link
Copy Markdown
Collaborator Author

Maintainer review: refreshed onto develop (merge b98f9b3) so the visual gate compares against the current baseline set. Zero open threads. CI re-running on the refreshed head; enqueuing after green.

@github-actions
github-actions Bot disabled auto-merge September 28, 2026 04:39
@joeharris76

Copy link
Copy Markdown
Collaborator Author

Status note (takeover sweep): the remaining failures are Public-site visual regression (changed /results/ captures at all four viewports) and its acceptance gate. The UI change is intentional in this PR, so the visual baselines need regeneration per the repo visual-baseline policy, then re-push. No code fix needed beyond the baseline update.

@joeharris76

Copy link
Copy Markdown
Collaborator Author

This PR touches soundness review paths (publication/ledger-seed.json), so the tooling result requires a Soundness review: section in the PR body: reviewer, comment link, and a statement that all Critical/High findings are resolved. Auto-merge is disabled until that review is recorded.

Bundles list skipped phases as {"status": "NOT_RUN"}, which are truthy, so
a bundle without benchmark.test_type was always inferred as power. Count only
phases that ran, and give the cohort-separation test distinct platforms so a
merged cohort cannot pass.
Both phases map to the bare cohort key, so the later tuple key replaced the
earlier one and dropped platforms. Aggregate members by the final key.
@joeharris76

Copy link
Copy Markdown
Collaborator Author

Soundness review: external agy, gemini-3.1-pro-high, read-only. Reviewed the throughput-phase corpus expansion (inventory generator and its tests, ledger seed, corpus inventory, spec note, and the four new tpch_sf1 DuckDB throughput bundles and manifests) against the merge base with develop. The review ran in three passes.

First pass: four High findings. Two were fixed: (1) the phase fallback treated {"status": "NOT_RUN"} placeholders as executed phases because they are non-empty dicts, so a bundle without benchmark.test_type was always inferred as power; only phases whose status is not NOT_RUN now count (new test). (2) The cohort-separation test used the same platform in both phases, so a merged cohort could pass; it now uses a different platform per phase. Two were not defects: publication/ledger-seed.json is generated by scripts/publication/create_ledger_seed.py, which sets bidirectional to false whenever legacy_overlay is non-empty and marks bundles that are in the working tree but not yet on published-results as legacy_overlay; the four new bundles are in exactly that state, and the next regeneration after publication reclassifies them.

Second pass: one High. Power and unknown phases share the bare cohort key, so the later tuple key overwrote the earlier one and dropped platforms. Cohort members are now merged by final key (new regression test), fixed in 626057d.

Third pass (626057d): no findings at any severity. Final verdict SHIP.

Hosted checks and the queue candidate must still pass.

@joeharris76

Copy link
Copy Markdown
Collaborator Author

oracle-review is now a required check on develop, and this PR's current head has no passing run.

  • If the PR changes no path in .github/soundness-paths.txt, rerun the latest oracle-review run, or dispatch it:
    gh workflow run oracle-review.yml --ref fix/throughput-corpus-expansion -f pr=2382
  • If it does change a soundness path, the head also needs one of these before the rerun:
    • a review or thumbs-up from the Codex connector;
    • when the connector cannot review, an independent review of that head, followed by a Stand-in oracle review: APPROVE <full head SHA> comment from a listed attester (see docs/operations/soundness-drain.md).

@joeharris76

Copy link
Copy Markdown
Collaborator Author

/gemini review

@joeharris76

Copy link
Copy Markdown
Collaborator Author

Stand-in oracle review: APPROVE d51b983

@joeharris76
joeharris76 merged commit becac49 into develop Oct 7, 2026
63 of 66 checks passed
@joeharris76
joeharris76 deleted the fix/throughput-corpus-expansion branch October 7, 2026 03:33

This branch was successfully deployed

1 active deployment
oracle — d51b9831 Deployed Oct 7, 2026 by joeharris76 via post #213
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