Skip to content

test: cover trust score breakdown boundaries - #68

Merged
divyanshujethi merged 2 commits into
RitualDev-Lab:mainfrom
NginxL:test/56-trust-score-boundaries
Dec 6, 2026
Merged

divyanshujethi merged 2 commits into
RitualDev-Lab:mainfrom
NginxL:test/56-trust-score-boundaries

Conversation

@NginxL

@NginxL NginxL commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

What this changes

Adds focused assertions for the TrustScore five-factor breakdown:

  • missing repository URL;
  • missing package identifier;
  • identical repository/package/documentation inputs with Low versus High risk tiers.

Each case checks all five exact factor values, and the risk-tier case verifies that only permissionSandboxing changes. Total scores are asserted as well.

Closes #56.

How I tested it

  • npm test completed successfully, including the Unified Trust Score & Schema Gate Suite and the repository's other test suites.
  • git diff --check passed.
  • Test-generated changes to site/digest.html, site/feed.json, and site/feed.xml were restored so this PR contains only the requested test file.

Remaining verification

No live registry introspection or deployment check was needed for these deterministic scoring tests.

AI disclosure

AI assistance was used to prepare and verify this test-only change. The final diff was reviewed and the checks above were executed.

@divyanshujethi
divyanshujethi marked this pull request as ready for review December 6, 2026 06:32

@divyanshujethi divyanshujethi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean boundary tests for all five trust breakdown factors.

@divyanshujethi
divyanshujethi merged commit f938e39 into RitualDev-Lab:main Dec 6, 2026
11 checks passed
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.

Add boundary unit tests for TrustScore breakdown scoring edge cases

2 participants