Files
NeuroSploit/neurosploit-rs
Joas A SantosandClaude Opus 5 ec656c1ada feat(skills): have a model read what findings yielded, alongside the keywords
capabilities_from matches keywords over a finding's title, impact and
evidence. It misses a credential phrased in words the list does not carry, and
it mints rce from a finding that merely warns command injection is possible.

Add a second reader. capabilities_via_model shows a model the findings and the
nine-name vocabulary and asks what the tester can now do that they could not
before, with the distinction stated: a parameter reported vulnerable to
command injection is not rce, a command whose output is in the evidence is.

The two are unioned, never substituted. Only names from CAPABILITIES survive —
anything the model invents is dropped — and a failed or refused call leaves
the keyword result standing, so the read can only widen what was already
derived. Off with NEUROSPLOIT_CAPABILITY_READ=off, and skipped once the USD
budget is in wrap-up, since it is one call per round.

Fixes a latent bug the new tests surfaced: SkillMeta derived Default, giving
max_rounds 0, while the field's serde default is 2. The key-value frontmatter
parser starts from Default::default() and fills in only the keys a file names,
and route drops any skill that has reached its max_rounds — so a skill whose
frontmatter omitted the key loaded with 0 and was silently unroutable. No
shipped skill omits it, so nothing was broken in practice, but the next one
written would have been. Default is now written by hand to agree with serde.

Five tests: that only vocabulary names survive the filter, that an unusable
reply cannot narrow the keyword result, that route uses supplied capabilities
rather than re-deriving them, that frontmatter without max_rounds is still
routable, and that the two defaults cannot drift apart again.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-12-04 12:30:31 -03:00
..