Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Route deeper analyzers per component with prerequisites and inert invocation plans

Aperta
#79 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
cli, devtools, tooling

Direzione di ricerca

Start with pkg/capabilities/types.go and the existing planner described by #60, then read the map (#74) and coverage-ledger descriptors (#78). Define the router's descriptor data and inert output shape before implementation. Done means the map and one-shot summary report applicable tools, observed and missing prerequisites, scope, coverage, and inert argv, with golden-corpus and descriptor-versioning tests passing.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement follow-up

Why

The "glue" role needs dircue to say which deeper analyzers apply to which component, what each needs, and what it will and won't cover. It should do this before anything runs, deterministically and offline.

Today plan can only route dircue's own modules. The registry in pkg/capabilities/types.go lists eight: availability, declarations, discovery, environments, focus, formats, metrics, structure. It can't plan any external tool. #25 describes exporting tool prerequisites but has no concrete router.

Proposal

Extend planning into an analyzer router driven by the map (#74) and the same versioned provider descriptors used by the coverage ledger (#78).

For each component and deployable, emit:

  • applicable tools, with the reason (language, framework, build system);
  • prerequisites observed vs. missing, for example:
    • a JVM component: mvnw/gradlew present, declared maven.compiler.release or Gradle toolchain, multi-module parent;
    • .NET: SDK from global.json, target frameworks;
    • Python: requires-python, lockfile presence;
    • Go: go directive, go.work;
  • scope: root, includes and excludes (vendored, generated, test);
  • expected coverage, which feeds the ledger;
  • inert argv templates with placeholders (never executed), and the report format to hand back to --attach (#77).

Initial descriptors:

Tool Notes
Syft always applicable; directory source
OWASP Noir framework-coverage table matched against observed frameworks
OpenTaint Java/Kotlin; Maven/Gradle build or precompiled classes; JDK version; SARIF out
Bifrost 13 languages; build-free; requires a staged regular-file inventory (a relative --sources symlink escape was found in the #24 evaluation); BIFROST_SEMANTIC_PACK_DOWNLOAD=off; private cache dir
BCA / scc languages as today
Semgrep/OpenGrep, CodeQL language support; CodeQL build modes

Rules

  • Never route by PATH contents, and never let repository content choose tools, arguments or budgets. Caller policy is trusted; the repository is evidence.
  • Missing prerequisites are reported, never guessed around. Weak evidence isn't a safe-to-skip recommendation.
  • Absorbs the tool-prerequisite portion of #25. #26 (OpenTaint → ZAP) remains a downstream recipe.

Acceptance

  • Router output in the map and the one-shot summary (#76).
  • On the golden corpus (#75), applicable tools and unmet prerequisites match the hand-written expectations. JVM entries route to JVM-capable tools with correct build prerequisites, and an unsupported-language component shows no taint analyzer.
  • Descriptor data is versioned and tested. Updating a tool version is a data change with its own review.

Related: #9 (trusted profiles), #21, #24, #25, #26, #60 (planner). Epic: #81.

Lingua principale
Go
Stelle
0
Fork
0
Merge medio
5h 8m
PR unite (30g)
54

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di war-and-code/dircue

Tutte le issue di war-and-code/dircue

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.