Przejdź do treści
Biblioteka skilli
Programowanie · Analiza

partial-update-omission-behavior

/partial-update-omission-behavior

Ustala, co się dzieje z pominiętym polem przy częściowej aktualizacji API, bo domyślny reset jest zmianą, o którą nikt nie prosił.

Repozytorium
flawpath ↗
Licencja
MIT
Ostatnia zmiana repozytorium
28.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
2
Przestarzałość

Brak sygnałów. Repozytorium zmienione 28.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

Ustala, co się dzieje z pominiętym polem przy częściowej aktualizacji API, bo domyślny reset jest zmianą, o którą nikt nie prosił.

Oryginalny opis (EN)

Establish what an omitted field does during a partial update, because an omission that resets to default is a mutation the caller never asked for. Use when the API supports partial updates and the semantics of omitted fields are unconfirmed

Jak działa

  1. Procedure
  2. Signals
  3. Patterns
  4. Pitfalls
  5. Done when
  6. References
Sekcje z nagłówków SKILL.md, w oryginale · 63 linii, 370 słów
Podgląd SKILL.md
---
name: partial-update-omission-behavior
description: "Establish what an omitted field does during a partial update, because an omission that resets to default is a mutation the caller never asked for. Use when the API supports partial updates and the semantics of omitted fields are unconfirmed"
pack: flawpath
version: 1.0.0
category: backend-api
tags: [probe, patch, state]
---

# Partial Update Omission Behavior

> Establish what an omitted field does during a partial update, because an omission that resets to default is a mutation the caller never asked for

**Use when:** the API supports partial updates and the semantics of omitted fields are unconfirmed

**Avoid when:** omitted fields are documented as unchanged and a test confirms the stored value survives

## Procedure

1. Capture the full state of a synthetic record you own before the update.
2. Send a partial update touching one field while omitting several others.
3. Read the record back and compare every field against the captured state, not only the one you sent.
4. Identify any omitted field that changed, reset or lost precision as a side effect.
5. Repeat once with a different subset omitted to confirm the behaviour is about omission rather than the field.
6. Record which fields are preserved, reset or recomputed on omission.

## Signals

- An omitted field resets to a default rather than keeping its value
- A numeric or precision-bearing field changes when it was not mentioned
- A nested object is replaced wholesale when only a sibling field was updated
- The behaviour differs between two subsets of omitted fields

## Patterns

**1. Diff record**

```text
before: {a: 1, b: 2, c: 3}
update: {b: 9}
after:  {a: 1, b: 9, c: 0}  <- omitted c reset
```

**2. Full-diff rule**

```text
compare every field rather than only the one you sent; the side effect is on a field you did not touch
```

**3. Subset repeat**

```text
a second omission subset separates a field-specific behaviour from a general omission rule
```

## Pitfalls

- Checking only the field that was sent, which is exactly how a reset goes unnoticed
- Attributing a reset to the update when it was caused by a server-side recompute
- Concluding safe behaviour from one subset and never varying it

## Done when

- Every field on the record is diffed before and after the partial update
- Preserved, reset and recomputed fields are listed with a confirming second subset

## References

- [RFC 5789 - PATCH method for HTTP](https://www.rfc-editor.org/rfc/rfc5789)
- [CWE-642 - External control of critical state data](https://cwe.mitre.org/data/definitions/642.html)

Wersje

W bazie nie ma innych skilli o nazwie partial-update-omission-behavior.

Migawka bazy z 13.11.2026 · wersja paczki 5e56a0cd0221 (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

  • 100loom-omission-hunter
    Szuka tylko do odczytu tego, czego brakuje w kodzie, porównując zobowiązania behawioralne z kodem, testami, skutkami ubocznymi, scenariuszami awarii i zmianami publicznego API, np. pominiętych uprawnień i połkniętych wyjątków.

Uwagi i zgłoszenia

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