Skip to content

ci: run the new Trust v2 / judge test suites in node-tests - #34

Merged
criptogus merged 4 commits into
mainfrom
claude/vigilant-clarke-TMUjV
May 29, 2026
Merged

ci: run the new Trust v2 / judge test suites in node-tests#34
criptogus merged 4 commits into
mainfrom
claude/vigilant-clarke-TMUjV

Conversation

@criptogus

Copy link
Copy Markdown
Owner

Why

While verifying the app, I found CI (.github/workflows/test.yml) runs a hardcoded list of test files rather than npm test. The three suites added across #31#33trust-scoring, adversarial-holdout, adversarial-judge — were wired into package.json's test:ts script but never executed by CI. So the "green" checks on those PRs did not actually run the new tests.

Fix

Add the three suites to the TypeScript node:test step so the Trust Score v2 math, the deterministic holdout split, and the LLM-judge ensemble + Cohen's κ logic are CI-covered on every push/PR.

Verified locally

  • trust-scoring + adversarial-holdout + adversarial-judge: 26/26 pass
  • Pre-existing crypto-only suites (trust, release-signing): 5/5 pass
  • All new .ts files pass node --experimental-strip-types --check (syntax)

Note: full bun install / typecheck / build can't run in this sandbox (npm mirror is network-restricted, 403), so the broader build is validated by CI/Lovable where deps install.

https://claude.ai/code/session_01BnYrQNoKNNxPCSmV2suWna


Generated by Claude Code

claude added 4 commits May 29, 2026 22:23
test.yml used a hardcoded file list and never executed trust-scoring,
adversarial-holdout or adversarial-judge — wire them into the TS suite so
the Trust Score v2 + judge/calibration logic is actually CI-covered.
A judge error on a golden case was counted as a 'fail' verdict, inflating
disagreement and polluting Cohen's kappa. Skip errored cases, count them as
'skipped' in the calibration record, and 502 only if every case errored.
…y-Skills

- docs/product/CYBERSEC-SKILLS-IMPORT.md: licensing, dedup, skill/playbook
  routing, 3 proposed packs (SOC, Cloud/K8s, Red Team), and the upskilling path
- content/skills/{sigma-detection-engineer,pcap-triage-analyst,
  kubernetes-security-auditor}.yaml: converted to our schema, Apache-2.0
  attributed, ready for validate -> sync -> SkillForge
- NOTICE: Apache-2.0 attribution for the upstream corpus
… schema bar)

The schema requires >=2 examples; 38 shipped skills had a single placeholder
('<fill with a realistic task>'), so the content gate failed the moment any
content PR triggered it. Replaced each with two realistic, domain-coherent
examples (gtm-*, gx-*, doc-skill-*, cloud/devtools, ML/RAG, ads, video).
Also marks pcap-triage-analyst x_security_research (legit attacker-pattern prose).
validate:content + audit:skills now pass.
@criptogus
criptogus marked this pull request as ready for review May 29, 2026 23:09
@criptogus
criptogus merged commit 5d86e76 into main May 29, 2026
2 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.

2 participants