Feature request: First-class white-box task mode with source archive and Git import

Aperta
#534 1 commento 1 reazione 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
8/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
git, go
Ambito
backend, security

Direzione di ricerca

The payload names no source files, only the existing codeaudit skill from #54 and #55, so start by finding how that skill and generic task attachments are wired together in the Go codebase. The proposal bundles a task mode selector, archive extraction with security limits, Git import with credentials, and UI display, so scope needs maintainer agreement before any code. Done would mean a white-box task that imports a source snapshot and runs codeaudit without manual setup.

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

Descrizione

feature

Context

ARTEX already ships the codeaudit skill introduced by #54 / #55, and task creation already supports generic file attachments.

However, performing a source-code audit currently requires several manual steps:

  • the operator must discover and enable codeaudit for the relevant agents;
  • source archives are uploaded as generic attachments and are not automatically extracted;
  • directory uploads do not preserve the repository tree;
  • there is no dedicated Git repository URL / branch / commit import;
  • source paths are appended to the free-form task description instead of being modeled as a task source.

Proposal

Add a first-class task mode selector:

  • Black-box
  • White-box
  • Hybrid

For white-box and hybrid tasks, provide a dedicated source section supporting:

  1. ZIP or tar archive upload;
  2. Git repository URL with branch, tag, or commit selection;
  3. secure credentials for private repositories;
  4. optionally, a local directory for self-hosted installations.

The imported source should:

  • be stored as a task-local, immutable snapshot;
  • preserve the complete directory structure;
  • be accessible to the planner, workers, and main agent;
  • automatically expose and invoke the existing codeaudit skill;
  • display its origin, selected ref, and resolved commit in the task UI.

Archive extraction should reject path traversal, symlink escapes, archive bombs, and excessive file counts or expanded sizes.

Repository code should not be executed by default. Any build, dependency installation, or dynamic verification step should require an explicit operator action or approval.

Expected result

An operator can create a white-box task, provide a source archive or repository, and start a reproducible source audit without manually configuring skills, extracting files, or passing absolute paths through the task description.

Lingua principale
Go
Stelle
18.7k
Fork
7k
Merge medio
10h 41m
PR unite (30g)
342

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 BaaRai/ARTEX

Tutte le issue di BaaRai/ARTEX

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.