Repository navigation
Epic #736: self-healing post-publish artifact cascade (archive/zarr/records) - #746
Merged
Merged
Conversation
* Add bounded auto-retry for failed archives * Address review: waitUntil dispatch, sweep note
* Flip S3 public early + propagation gate * Move s3_public_read block before repo_public
* Add records-ready webhook + records_status column * Clarify reserved 'pending' records_status in migration
Contributor
Author
|
Cross-phase Sonnet /review-pr (epic->dev) — caught two real inter-phase issues that the per-phase reviews couldn't see, both now fixed:
Migrations 0040+0041 apply cleanly in order; webhooks.ts/index.ts/admin.ts compose coherently; shared columns + naming consistent (per the reviewer). 16 tests pass, tsc + Biome clean. |
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR746Version: 🤖 Updated on each push. |
1 of 8 tasks
This branch was previously deployed
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.
Summary
Epic #736 — make the post-publish artifact cascade (archive / zarr / records) self-healing, after the nm000111 incident where an approval minted the DOI but produced an incomplete archive, no Zarr, and no records.json.
Root cause:
run-generate-archive.ymlread S3 blobs over anonymous HTTP and raced the publish-time public-flip propagation, 403'ing every blob into a hollow zip; the partial then stuck at the canonical key; nothing retried; and records.json was never dispatched at all.Phases (A & C already live on nemarDatasets/.github; D, B, E in this PR)
GetObjectCommand(creds it already had). Eliminates the public-flip race. Would have prevented the incident.archive_retry_count). Zarr left to the Hallu cron.s3_public_readnow the first mutation after the gates (real execution-block move); non-fatal anonymous-HEAD propagation probe.generate-recordson publish (it was fully built but never triggered) + records-ready callback/webhook. Migration 0041 (records_status).Split out: #737 (Zarr mixed-rate EDF/BDF, likely biosigIO) — handled separately, not in this epic.
Closes #736
Migrations (apply on deploy)
archive_retry_count, 0041records_status/records_checked_at. Apply to dev D1 on this merge; prod D1 at dev -> main.Test plan
/review-pr(all findings addressed). D: 12 tests; B: 4 tests; E: 4 tests. tsc + Biome clean.126 annexed + 0 skipped; induced-failure partial deleted.🤖 Generated with Claude Code