Przejdź do treści
Biblioteka skilli
Programowanie · Testowanie

parser-failure-mode-testing

/parser-failure-mode-testing

Sprawdza, czy parser lub strażnik danych zgłasza ostrzeżenie przy każdym uszkodzeniu, zamiast cicho przepuścić błąd.

Repozytorium
agent-skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
26.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Sprawdza, czy parser lub strażnik danych zgłasza ostrzeżenie przy każdym uszkodzeniu, zamiast cicho przepuścić błąd.

Oryginalny opis (EN)

Use when auditing a parser or guard for delimited text, or any check that reports its own reliability, to prove corruption always produces a warning and never silently passes.

Jak działa

  1. Authorization and test boundary
  2. Purpose
  3. Inputs and scope
  4. Steps
  5. Controls
  6. Done when
Sekcje z nagłówków SKILL.md, w oryginale · 32 linii, 469 słów
Podgląd SKILL.md
---
name: parser-failure-mode-testing
description: "Use when auditing a parser or guard for delimited text, or any check that reports its own reliability, to prove corruption always produces a warning and never silently passes."
---
# Parser Failure-Mode Testing

## Authorization and test boundary

These instructions grant no permission. Confirm the exact resources, allowed effects and data handling before acting. Use synthetic canaries and disposable fixtures for deliberate failures; never use real credentials as test inputs. Keep secrets and fragments out of model context, arguments, logs and plaintext artifacts. Imports, constructors, help and dry-run commands may have effects. Establish external-effect isolation before executing untrusted code; application stubs are not a sandbox. Record untested scope and obtain separate authorization for production changes or destructive actions.

## Purpose

Find failure modes that a fix introduced, not just whether the current result is correct. The key property is: corruption implies a warning. A guard that compares counts can be blind when a lost element and an invented one cancel out. Test for that compensation first.

## Inputs and scope

- The parser or guard code, with the commit under review.
- A sandbox where adversarial inputs can be created through the real system, using a test identity, then cleaned up.

## Steps

1. Reproduce the defect through the real system. Generate adversarial input with a test identity, then parse the raw text returned by the service, importing the delivered code and not a copy. Remove test artifacts afterward.
2. Look first for compensation: can an input lose one element and invent another while keeping totals unchanged? This is the case most likely to pass unnoticed.
3. Ask for a structural argument rather than a list of cases. Example pattern: if a block start is accepted only when the previous line matches an anchored end delimiter, then that previous line always closes its block, so a phantom element always unbalances the count and the old guard detects it.
4. Confirm the argument by exhaustive enumeration over what the attacker controls: number of real elements, fake start delimiters, quoted delimiters with and without closing quotes, trailing content. For each case compute two independent booleans: corrupted (spoofed sender or type, truncated content, wrong count, or a real identifier reached by a destructive action) and warned (warning is not null). The verdict is the number of corrupted-and-silent cases, which must be zero.
5. Check that any destructive action is gated by the guard. A warning that is logged while the mutation still runs means the operator reads the warning after the damage. Trace the warning variable to the write.
6. Check scope: list files changed since the previous rejection, and rerun the main suite if it references the changed file.

## Controls

Run the same enumeration against the pre-fix code. The positive control must show silent cases there.

## Done when

The original defect does not reproduce, the guard warns in the scenario where it previously stayed silent, and silent corrupted cases equal zero. Explicitly exploitable but noisy residuals are documented.

Wersje

W bazie nie ma innych skilli o nazwie parser-failure-mode-testing.

Migawka bazy z 13.11.2026 · wersja paczki 138474d2ec01 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90esp32-property-based-parser-tests
    Przygotowuje testy oparte na własnościach dla parserów ESP32, które generują losowe dane wejściowe i sprawdzają niezmienniki.
  • 100parser-developer
    Prowadzi rozwój parsera AILANG według konwencji i wzorców: modyfikacja parsera, jego architektura i debugowanie, z zapobieganiem błędom pozycji tokenów.
  • 100parser-developer
    Prowadzi rozwój parsera AILANG według konwencji i wzorców: modyfikacja parsera, jego architektura i debugowanie, z zapobieganiem błędom pozycji tokenów.
  • 100learn-from-failure
    Zamienia porażki w materiał wielokrotnego użytku i sprawdza, czy ten sam błąd się powtarza, przy analizie trybów awarii.
  • 100add-parser
    Dodaje do pakietu parsera remindb obsługę nowego formatu plików, np. .toml, .csv czy .xml, z rejestracją rozszerzenia w ParseBytes i nowym źródłem ContextNode.
  • 100pdf-parser
    Prawdopodobnie pomaga konfigurować i prowadzić parsowanie plików PDF w automatyzacji procesów biznesowych, na podstawie nazwy i kategorii Business Automation.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.