Skip to content

Validate the database users install before publishing - #468

Merged
clarkbw merged 12 commits into
mainfrom
accuracy-release-checks
Dec 2, 2026
Merged

clarkbw merged 12 commits into
mainfrom
accuracy-release-checks

Conversation

@clarkbw

@clarkbw clarkbw commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

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 registry gitHead. CI run

Known 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.

clarkbw and others added 2 commits December 1, 2026 14:05
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>
@pkg-pr-new

pkg-pr-new Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@slackwater/database@468

commit: 2b937d3

clarkbw and others added 3 commits December 1, 2026 17:09
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
clarkbw marked this pull request as draft December 2, 2026 00:32
clarkbw and others added 7 commits December 1, 2026 17:40
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>
@clarkbw
clarkbw marked this pull request as ready for review December 2, 2026 04:44
@clarkbw
clarkbw merged commit 337ffad into main Dec 2, 2026
8 checks passed
@clarkbw
clarkbw deleted the accuracy-release-checks branch December 2, 2026 04:44
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