Stage-1 SAFE runs on a session whose shell moved PATH

Aperta
#253 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
bash, typescript
Ambito
cli, security

Direzione di ricerca

Start with index.ts, especially the stage-1 SAFE branch and the stage-2 stageTwo latch, then read docs/plans/2026-11-04-stage-2-latch-scope.md. Determine how the host reports shell-state drift and how often sessions drift before deciding how the new refusal should apply. Done means a SAFE bare-name command in a drifted session is blocked consistently with a reviewer allow, with the drift measurement informing the added refusals.

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

Descrizione

A stage-1 SAFE auto-runs on a session whose shell an earlier call changed. https://github.com/STRML/omp-classifier/pull/225 only stops the stage 2 reviewer once a session moves PATH, adds an alias or defines a function. Jev's own SAFE never checks.

call 1:  export PATH=$PWD/.bin:$PATH        (gate judges it, runs)
call 2:  git status                          Jev SAFE ─▶ runs .bin/git
Path Checks shell state?
stage 1 SAFE, branch 3 (index.ts if (judgement.verdict === "SAFE")) no
stage 2 reviewer allow yes (latch, index.ts stageTwo)

The latch covers the weaker path only. Jev reads the command text, and git status is SAFE text whatever git resolves to.

The fix rides on the shell-state check planned in docs/plans/2026-11-04-stage-2-latch-scope.md: once the host reports drift against the session's baseline, a SAFE on a bare name in a drifted session should block the same way a reviewer allow does. That adds refusals, so it wants a measurement of how often sessions drift first.

Found by the auditor seat during plan review for the latch fix.

Lingua principale
TypeScript
Stelle
1
Fork
1
Merge medio
49m
PR unite (30g)
82

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 STRML/omp-classifier

Tutte le issue di STRML/omp-classifier

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.