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

CTL-010 prints 'no bypasses detected' in the same run that WARNs about N bypasses — the PASS message asserts more than it measures

Aperta Adatta ai principianti
#49 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
76/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
shell, yaml
Ambito
cli, devtools

Direzione di ricerca

Inizia in agents/audit/audit.sh intorno alle righe 4998–5017, dove CTL-010 formatta il proprio messaggio PASS, e analizza il test o i controlli di audit pertinenti per quel controllo. Esegui fw audit per confrontare il messaggio con il conteggio dei bypass; è completato quando CTL-010 circoscrive chiaramente la propria affermazione al log di git --no-verify senza implicare che altri bypass siano assenti.

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

Descrizione

A single fw audit run prints both of these, within a few lines of each other:

[WARN] Gate-bypass log: 11 safety bypasses in last 7 days
[PASS] CTL-010: Bypass log exists but empty (no bypasses detected)

Reproduced live on framework 1.6.769 on 2026-09-21. The count has read 7, 9 and 11 across
separate runs; the shape is stable, only the number moves.

It is not a contradiction, and that is the problem

The two lines read different files:

  • CTL-010 reads .context/bypass-log.yaml — the git --no-verify log, which really is
    bypasses: [].
  • The WARN reads .context/working/.gate-bypass-log.yaml — framework gate bypasses
    (FW_SWITCH_FOCUS, FW_ALLOW_HOST_SIGNED_RAIL, and so on), which had 18 entries.

So both statements are true about their own source. The defect is that CTL-010's PASS
message asserts more than CTL-010 measures.
agents/audit/audit.sh:4998-5017 hard-codes
the string "no bypasses detected" with no scope qualifier. An operator scanning an audit
report sees an unqualified all-clear sitting next to a warning about eleven bypasses, and
has to open the source to learn that the two are talking about different logs.

Two adjacent notes
  • The second log, .context/working/.gate-bypass-log.yaml, is malformed YAML —
    yaml.safe_load raises a ParserError. So the file the WARN counts cannot be parsed by a
    YAML reader, while the file CTL-010 calls empty parses fine. Tracked downstream, but it
    means the unqualified PASS is masking a corrupt sibling, not just a narrower one.
  • This is the same shape as issue #45: a declaration the framework makes about itself,
    written in one place and read in another, that nothing re-evaluates at the point of use.
Suggested fix

One line: have CTL-010 name its scope — "no git --no-verify bypasses" rather than "no
bypasses detected". If the two logs are meant to be one surface, merging them is the
larger fix; qualifying the sentence is the cheap one and removes the false all-clear
immediately.

Filed from project 1409-sprind under T-1133 (observation-inbox triage), from OBS-026,
re-measured against a live audit run rather than carried from the original capture.

Lingua principale
Shell
Stelle
16
Fork
6
Merge medio
6h 24m
PR unite (30g)
5

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 DimitriGeelen/agentic-engineering-framework

Tutte le issue di DimitriGeelen/agentic-engineering-framework

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.