Add literature freshness review assistant - #394
Closed
karollooool wants to merge 2 commits into
Closed
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new “literature freshness review assistant” slice to the SCIBASE AI-Powered Research Assistant Suite, intended to screen reviewer-facing manuscript claims for staleness and evidence drift prior to releasing reviewer packets.
Changes:
- Introduces a new
literature-freshness-review-assistant/module with a freshness evaluator, deterministic audit digests, and Markdown/SVG renderers. - Adds dependency-free tests plus deterministic demo artifact generation (JSON/MD/SVG) and an optional ffmpeg-based MP4 demo renderer.
- Updates the repo README to link to the new slice.
Reviewed changes
Copilot reviewed 10 out of 12 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Adds a “Bounty Slices” section linking to the new assistant. |
| literature-freshness-review-assistant/README.md | Documents the slice scope, files, and validation commands. |
| literature-freshness-review-assistant/package.json | Adds per-slice scripts (check, test, demo, demo:video). |
| literature-freshness-review-assistant/index.js | Implements freshness evaluation logic, digests, and Markdown/SVG rendering. |
| literature-freshness-review-assistant/sample-data.js | Adds synthetic policy, evidence ledger, and manuscript packets fixtures. |
| literature-freshness-review-assistant/test.js | Adds assertion-based tests for evaluator + renderers + digest stability. |
| literature-freshness-review-assistant/demo.js | Generates deterministic demo JSON/MD/SVG artifacts. |
| literature-freshness-review-assistant/scripts/render-demo-video.js | Optional ffmpeg script to render an MP4 demo. |
| literature-freshness-review-assistant/reports/demo.json | Committed example JSON output. |
| literature-freshness-review-assistant/reports/demo.md | Committed example Markdown output. |
| literature-freshness-review-assistant/reports/demo.svg | Committed example SVG output. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+80
to
+102
| if (signal.currentVersion && claim.datasetVersion && claim.datasetVersion !== signal.currentVersion) { | ||
| addFinding(findings, { | ||
| severity: "major", | ||
| code: "DATASET_VERSION_DRIFT", | ||
| claimId: claim.id, | ||
| topic: claim.topic, | ||
| detail: `Claim uses dataset ${claim.datasetVersion}; current ledger version is ${signal.currentVersion}.`, | ||
| requiredAction: signal.requirement, | ||
| evidenceSignalId: signal.id | ||
| }); | ||
| } | ||
|
|
||
| if (signal.currentVersion && claim.benchmarkVersion && claim.benchmarkVersion !== signal.currentVersion) { | ||
| addFinding(findings, { | ||
| severity: "major", | ||
| code: "BENCHMARK_VERSION_DRIFT", | ||
| claimId: claim.id, | ||
| topic: claim.topic, | ||
| detail: `Claim uses benchmark ${claim.benchmarkVersion}; current ledger version is ${signal.currentVersion}.`, | ||
| requiredAction: signal.requirement, | ||
| evidenceSignalId: signal.id | ||
| }); | ||
| } |
Comment on lines
+37
to
+42
| function evaluateClaimFreshness(claim, ledger, policy) { | ||
| const findings = []; | ||
| const signals = evidenceForTopic(ledger, claim.topic); | ||
| const latestCitation = latestDate(claim.citationDates || []); | ||
| const reviewDate = policy.reviewDate; | ||
|
|
Comment on lines
+244
to
+249
| lines.push("| Severity | Code | Claim | Detail | Required action |"); | ||
| lines.push("| --- | --- | --- | --- | --- |"); | ||
| for (const finding of manuscript.findings) { | ||
| lines.push( | ||
| `| ${finding.severity} | ${finding.code} | ${finding.claimId} | ${finding.detail} | ${finding.requiredAction} |` | ||
| ); |
Comment on lines
+10
to
+17
| function yearsBetween(olderDate, newerDate) { | ||
| const older = new Date(`${olderDate}T00:00:00Z`); | ||
| const newer = new Date(`${newerDate}T00:00:00Z`); | ||
| return (newer.getTime() - older.getTime()) / (365.25 * 24 * 60 * 60 * 1000); | ||
| } | ||
|
|
||
| function latestDate(dates) { | ||
| const validDates = dates.filter(Boolean).sort(); |
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.
No description provided.