Repository navigation
Validate the database users install before publishing - #468
Merged
Merged
Conversation
Compare the packaged station data with JMA tables and observed NOAA water levels, and check TCD output against XTide. Reuse the tested build and allow interrupted releases to finish with their original artifacts. Provide a quick consumer check for engine and database changes together. Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
commit: |
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
clarkbw
marked this pull request as draft
December 2, 2026 00:32
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Validate the TCDB extracted from the release tarball against 4,032 JMA tide-table hours and 1,331 verified NOAA gauge hours. Reuse the tested database build and allow interrupted publication to resume with the original artifacts. Developers can run both candidate tarballs together with
npm run test:pair.Review
Round 1 was a whole-change review by Codex, Copilot, Claude Opus and Claude Sonnet. Rounds 2 and 3 were focused follow-ups by Opus and Sonnet. Several reviewers were limited to static inspection.
The fixes verify and reserve GitHub release ownership before npm publication, guard the npm channel against older versions, upload recovery assets to the validated release, and preserve beta classification. Unknown chart datums now appear in station names within libtcd limits. The JMA check verifies all packaged harmonics and chart datums at stored precision, and the NOAA comparison checks the declared chart datum. The paired-package command passed nine tests using the candidate tarballs after separating source-schema tamper tests from the consumer run.
After round 3, the release path check was updated to include npm channel versions even when their GitHub asset publication is incomplete. The workflow-script tests passed after that change. The final baseline change was made after the last model round.
Hosted CI passed all eight checks in 5m 46s at
26b66a2. This commit also excludes the historical npm bootstrap version, which has no GitHub source tag or registrygitHead. CI runKnown limitations
The physical gauge panel covers four US stations and two seasonal weeks per station, with a weekly regression tolerance of 1 cm. JMA uses the agency’s predictions and harmonics. Unsampled constituent definition values remain outside the accuracy gates. Hosted PR checks do not execute npm publication or live draft recovery.
After merge
Confirm required checks and the npm trusted publishing environment settings.
Follow-up review and rehearsal
Fresh database builds must use the tip of main. Publication rechecks the tag before the npm write. Draft recovery checks the target, tag, asset state and digests before promotion. The workflow-script tests exercise a mismatched npm tag owner and a draft retagged during upload.
The release checks run on the installed database tarball. The Worker database matched the standalone TCDB byte for byte, the sampled gauges were in the accepted catalogue, and all nine JMA and NOAA consumer checks passed. Claude Opus and Sonnet reviewed the follow-up changes. Hosted package rehearsal
The production workflow and private npm trust settings still require coordinated verification. The rehearsal skips npm publishing, tag reservation and GitHub release creation.
Legacy npm recovery and JMA metadata
If npm accepted a legacy package and its GitHub tag is missing, supply the original main release run ID via
legacy_run. The build uses its source commit only after the retained tarball matches npm's published SHA-512 and the commit is in the build's history. I verified the workflow identity and tarball digest against the public December 1 release without changing the tag or package. Tests cover missing, mismatched and non-ancestral evidence.The JMA artifact gate now checks the harmonic epoch, source and nodal options for every station. A modified epoch at an unsampled station fails the regression test. Claude Opus and Sonnet reviewed this diff and its follow-up. Published constituent definition values beyond the sampled predictions remain outside this check.