feat: add current registry CSV/JSON export - #139
Merged
dubemoyibe-star merged 2 commits intoAug 31, 2026
Conversation
- add a current scored registry store read with latest-ok score and latest-run freshness semantics - add JSON/CSV export route with deterministic factor columns, CORS, rate limiting, cache, and attachment headers - document the export contract and cover store/export behavior
|
@Fhatu12 is attempting to deploy a commit to the Oyibe Chidubem's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
Excellent work @Fhatu12
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
Thanks for the assignment and the warm welcome! I’ve starred the repo ❤️. I really appreciate the opportunity to contribute to Stenion. I’ll have a look at another issue to work on next. |
dubemoyibe-star
self-requested a review
August 31, 2026 11:26
…of the staleness model is three places to forget
dubemoyibe-star
approved these changes
Aug 31, 2026
dubemoyibe-star
left a comment
Contributor
There was a problem hiding this comment.
excellent
merging!!!!!🚀🚀
This was referenced Aug 31, 2026
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.
What this changes
Adds
GET /api/v1/protocols/exportas a current registry snapshot export for JSON and CSV consumers.The export reuses the registry's persisted latest-successful score semantics while preserving the latest run status, includes category-specific factor breakdowns,
methodologyVersion, andoperationalState, and does not add historical export, filtering, or score recomputation.Closes #138.
Verification
corepack pnpm format— passes on the exact candidate with no tracked changes.corepack pnpm buildcorepack pnpm lint— exits successfully; the existingscripts/capture-fixture.mjsunused-URLwarning is unchanged.corepack pnpm typecheckcorepack pnpm format:checkcorepack pnpm testcorepack pnpm build:dashboardgit diff --check origin/dev..HEADSTENION_TEST_DATABASE_URL=<scratch-local-postgres> corepack pnpm --filter @stenion/db test— 77 passed, 0 failed, 0 skipped.exports only current scored rows with latest-ok factors and latest-run statusexecuted against PostgreSQL and passed.Checklist
dev, notmain.pnpm format,pnpm build,pnpm lint,pnpm typecheckall pass from the repo root.*Safetyfactors: N/A — this PR does not change scoring or adapter factor computation.methodology/update: N/A — no formula, threshold, weight, scoring category, or anchoring fact changes.