feat(ruby): ground-truth sample for the ruby_ast scanner #2
Loading…
Reference in a new issue
No description provided.
Delete branch "ruby-sample"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds
ruby/, the ground-truth sample for Triton'sruby_astscanner (scanner PR: amiryahaya/triton#1376): a hardened stdlib Ruby web app that runs 277 server implementations, plus scanned-only fixture trees (constructs/,rails/,projects/), generators and checks, andexpected-findings.jsonthat a real scanner run is compared against. Layout, commands and what a PASS proves are inruby/README.md; what the scanner cannot reach is inruby/UNCOVERED.md. The design, survey and scanner plan are copied underdocs/superpowers/.Verification
make check(no container, no Go needed): 135 script tests pass; catalogue, family files, fixtures, pins, expected findings and UNCOVERED.md all consistent.make compare-scan TRITON_SRC=<triton at e32c54f0>PASS: 718 expected tuples, 717 matched (the other is the CLI-excludedvendorfile), 0 missing/extra/decoy/status/reachability/attribution/derived/evidence failures, 0 SKIPPED.make check-freshandmake check-scan-allpass too.make selftest: 714/714 implementations match their known-answer vectors.ThreadError, Makefile quoting,gems.rbsyntax check.What a PASS means (and does not)
Matching is per file on (algorithm, status, reachability): about 590 detections share tuples and are proven only by the lookup golden file. Say "718 tuples", not "N registry implementations verified". Versions 5.1.7 and 8.1.5 in fixtures are never installed.
Needs attention after merge
e32c54f0. If #1376 is amended or squash-merged that commit is no longer an ancestor andmake check-freshfails untilmake snapshot golden-from-go expectedis re-run against the merged scanner. Merge this after #1376 and refresh once.make check-fresh TRITON_SRC=...is mandatory whenever the scanner changes.scanner-bugand gap rows record knownruby_astdefects found by this sample (member-call parser keeps only 2 positional args,lambda { || },const_get, a project-definedBCrypt, per-key withholding wording, first-partylib/vendor/, a withheld KeyGenerator default, and others); they are listed in #1376.Known and accepted (not fixed here)
Unpinned
build-essentialin the build stage;check-http-cleanscope; loose coverage floors; no version-direction check forrails/; the vendored jwt stand-in uses raw HMAC; an unused rexml pin;make checkdoes not check a header's algorithm name (onlycompare-scandoes); theThreadErroraccept-loop fix has no test.🤖 Generated with Claude Code
GET /algorithms, POST /algorithms/{id}/run, make selftest, bcrypt/jwt/rotp locked, native build tools in the build stage only, killed handler threads are joined. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>