Repository navigation
release: 0.8.27 — central manifest workflow, access policies, hotfixes - #580
Merged
Merged
Conversation
…+ part of #558) PR-1 Stream A of epic #559. Adds scripts/emit_manifest.py (git-tree walk, no GitHub API), .github/workflows/generate-manifest.yml (repository_dispatch + workflow_dispatch), and helper scripts. Replaces in-worker manifest generation. Emits both manifest.json (existing shape) and summary.json (new compact artifact per #558). 25 real-git tests pass. Closes part of #556 + #558.
PR-1 Stream C of epic #559. Adds loadSummary helper, GET /:datasetId/:version/summary.json route (static passthrough, s-maxage=86400), and scripts/backfill-summaries.sh for the 5 recovered datasets. Includes 403-throws fix (silent-credentials-drift) and 500-on-S3-error fix from review round. 3 unit tests + real-S3 conditional test pass. Companion: nemarOrg/website#29. Closes part of #558.
PR-1 Stream B of epic #559. Adds triggerManifestGeneration dispatch (targeting nemarOrg/nemar-cli central repo), POST /webhooks/manifest-ready callback (HMAC-validated, S3 HEAD-checked, dataset_versions insert + nemar-sync deferred until callback), POST /webhooks/manifest-failed callback, migration 0025 (manifest_jobs), and feature flag MANIFEST_VIA_CENTRAL_WORKFLOW (default false). Includes review-round fixes: 403→throw, crypto-error→500, nemar-sync moved to manifest-ready, 500-on-insert-fail, skipCanary wired, validateManifestCallbackBody + isCentralManifestWorkflowEnabled unit tests, supersession warn, dead fallback removed. canary_skipped field handoff from Stream A accepted. 108 manifest+sync tests pass. Closes part of #557.
#563) Epic of #556 + #557 (PR-1) + #558. Three streams (Generator/Worker/Serving) merged into the epic branch via squash; final integration via regular merge to preserve sub-stream commit history. Behind feature flag MANIFEST_VIA_CENTRAL_WORKFLOW (default false); old generateManifest() path stays active as fallback. 33 Python tests + 86 backend tests pass. Cross-phase review found 9 findings, all addressed on the epic branch. Follow-up issues (deferred): PR-2/PR-3/PR-4 of #557, E2E flag=true coverage, manual workflow_dispatch recovery command. Admin-bypass merge: GitHub Actions paths-filter blocked by billing/spending-limit issue, not test failure. Closes #559.
Closes #564 (worker side). Companion to nemarDatasets/.github#1.
) Follow-up to epic #559. Repoints CENTRAL_WORKFLOW_REPO from nemarOrg/nemar-cli (billing-constrained Free) to nemarDatasets/.github (GitHub Team). Companion to nemarDatasets/.github#1 (merged 318578a). Worker-side: getDatasetsToken replaces getNemarOrgToken; getNemarOrgAuth/getNemarOrgToken removed as dead code; 5 relocated files deleted; CI python-unit-test job moved to nemarDatasets/.github; state doc + backfill script + runbook updated to new repo. 69 manifest tests + typecheck clean. Admin-bypass: GHA billing block on changes job, not test failure. Closes #564.
Establishes the architectural contract for AWS IAM/S3 access across NEMAR. 6 operational principles + 5 IAM users live in AWS with bucket-scoped policies + permissions boundary. Validated end-to-end on SCCN dev (10-step e2e pass).
Implements principles 5 + 6 from access-policies.md at the script layer. Shared bash library scripts/lib/aws-creds-guard.sh rejects long-lived AKIA* in env, warns on ASIA*, requires ~/.aws/credentials or aws sso login. Skipped in --dry-run paths.
Removes backend/wrangler.toml + all in-repo references to the retired personal Cloudflare account. Backend npm scripts now explicitly pass -c wrangler-sccn.toml. SCCN-only deploy path going forward. Admin-merge: only the publish workflow (npm 409 race) fails; required checks all pass.
Flips the central-manifest-workflow flag from false→true under [env.dev.vars] only. Prod stays off. Full e2e on SCCN dev (10 steps, 21s) validated. Worker already deployed to SCCN dev; this commit makes the source of truth match the live state. Companion to #571 (access policies).
…#579) Adds a recency guard to the reindex --missing-metadata filter so datasets whose upstream genuinely lacks required columns (e.g. nm000133 has no participants.tsv → subject_count stays NULL) don't get reindexed every hour with no progress. Default 24h; force-retry via --all. Replaces auto-closed #552. Companion to #553.
When a dataset's BIDS root doesn't include participants.tsv, derive a minimal one from the sub-XXX/ directory listing and commit it via the GH App. Closes the lifecycle gap that #579 mitigated with a recency guard: now the data actually appears instead of staying NULL forever. Pure module + 3 real-integration tests, no mocks. Case-sensitive on purpose (BIDS spec mandates lowercase); see code comment in participants-tsv.ts.
neuromechanist
temporarily deployed
to
development
May 22, 2026 19:31 — with
GitHub Actions
Inactive
Cross-phase review on dev→main #580 found Commander's '30' default always overrode the server-side ?? 1 default for --missing-metadata, hiding the 24h recency guard from #579. Fix moves default into the action handler per filter. Admin-merge: publish workflow fails with the npm 409 race that #581 (just merged) fixes for next time.
neuromechanist
temporarily deployed
to
development
May 22, 2026 19:32 — with
GitHub Actions
Inactive
This was referenced Nov 22, 2026
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.
Release rolling 29 commits from dev (badd48c..72f4cf8) into main. Per project release flow (auto-tag.yml strips
-dev*suffix on merge, creates tagv0.8.27, triggers npm-publish.yml).Headline changes
Epic #559 — Centralize manifest generation (PR-1)
triggerManifestGeneration()dispatchesrepository_dispatchtonemarDatasets/.github(relocated from nemarOrg/nemar-cli in Relocate central manifest workflow from nemarOrg/nemar-cli to nemarDatasets/.github #564/Relocate central manifest workflow to nemarDatasets/.github (#564) #565).summary.jsonsibling artifact ats3://nemar/<id>/version/v<X.Y.Z>-summary.json— compact path-only artifact for the website detail page.GET /:datasetId/:version/summary.jsonroute, static passthrough,s-maxage=86400.manifest_jobsD1 table (migration 0025) tracks dispatched workflow state with HMAC callback tokens.MANIFEST_VIA_CENTRAL_WORKFLOWflag; defaultfalseeverywhere,trueon SCCN dev (config: enable MANIFEST_VIA_CENTRAL_WORKFLOW on SCCN dev #567) for soak.Access policies + IAM (#571 + #574)
docs/operations/access-policies.md(six operational principles + 5 IAM user catalog).nemar-runtimegroup):nemar-worker-prod,nemar-worker-dev,nemar-actions-datasets,nemar-actions-cli,nemar-hallu-readonly. Permissions boundary attached to all.scripts/lib/aws-creds-guard.shrejects long-livedAKIA*env vars on admin scripts.Hotfix #570 (already on prod since 2026-05-22)
getManifest()andloadSummary()use unsigned-first / signed-fallback to survive Worker credential outages on the public read path.Other
#566retirebackend/wrangler.toml(personal Cloudflare account configuration removed).#553auto-generateparticipants.tsvwhen missing at BIDS root.#579--missing-metadata24h recency guard.Auto-tag flow
On merge:
.github/workflows/auto-tag.ymlstrips0.8.27-dev4→0.8.27, commits, tagsv0.8.27,npm-publish.ymlfires and publishes to npm withlatesttag.sync-dev.ymlthen merges main back to dev and bumps to0.8.28-dev0.Pre-merge ops state (no action required)
nemar-runtimegroupnemar-worker-prodcredentialsnemar-worker-devcredentialsMANIFEST_CALLBACK_SECRETset onnemarDatasetsorg-level + both SCCN Workers/home/yahya/.aws/credentials(nemar-hallu-readonly)Post-merge follow-ups (separate PRs)
MANIFEST_VIA_CENTRAL_WORKFLOW=trueon SCCN dev for a week, then plan PR-2/PR-3 of Centralize manifest+archive generation: workflow_dispatch on one central repo (zero YAML in dataset repos) #557npm-publish.ymlfires on every branch push and races itself (409); separate fixbuildRedirectUrl/generatePresignedGetUrlfor public datasets