golden-case
/golden-case
Pisze złoty przypadek testowy dla metody Fairmark z oczekiwanymi wartościami z niezależnego źródła.
- Autor
- salvo8519 ↗
- Repozytorium
- fairmark ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 10.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 1
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 10.11.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.
Co robi i kiedy
Pisze złoty przypadek testowy dla metody Fairmark z oczekiwanymi wartościami z niezależnego źródła.
Oryginalny opis (EN)
Author a golden test case for a Fairmark method with expected values from an independent source. Use when adding coverage for a method or an acceptance criterion.
Jak działa
SKILL.md bez nagłówków drugiego poziomu · 32 linii, 269 słów
Podgląd SKILL.md
---
name: golden-case
description: Author a golden test case for a Fairmark method with expected values from an independent source. Use when adding coverage for a method or an acceptance criterion.
---
<!-- Generated from .agents/skills/golden-case/SKILL.md by scripts/sync_agents.py. Edit the source, not this file. -->
1. Choose the source of truth, in order of preference: a practitioner model supplied by the
maintainer; a published worked example re-derived by hand; an independent reference
implementation in `scripts/reference_values.py` (Python `decimal`, precision 50, written
from the formula, not from the Rust code).
2. Create `tests/golden/<method>/<kebab-case-name>.yaml`:
```yaml
# Source: <where the expected values come from>
method: <method id>
description: <one line>
input: { ... } # amounts and rates as strings, e.g. "0.085"
expect: { field: "value" }
tolerance: "0.000000001"
```
Keys of `expect` are top-level fields or JSON Pointers (`/years/0/total`) into the result
`value`. To assert documented defaults, add `expect_meta` with JSON Pointers into `meta`,
for example `/defaults_applied/0/field`; it is compared like `expect` and protected like it.
To assert that a list has no entry beyond those asserted, add `expect_length` with JSON
Pointers into `value` and the expected count, for example `/not_computed: "3"`.
An error case (`expect_error`) may add `expect_error_report` with JSON Pointers into the
error report (ADR 0014 G5), for example `/pointer`, `/reason`, `/pointers/1` or
`/errors/2/pointer`; values are compared exactly (`null` for a null field) and protected
like `expect`. In an error case, `expect_length` counts arrays of the error report, for
example `/errors: "3"`, so that no error beyond those asserted is reported. Do not assert
`/fix`: its wording is not part of the contract.
3. Use only anonymised or synthetic data.
4. Run `cargo test -p fairmark-core --test golden` and `uv run pytest python/tests/test_golden.py`.
5. Existing golden files are protected by a hook: never edit them; propose a
`numerical-change` to the maintainer instead.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · salvo8519/fairmark | 92 | Apache-2.0 |
| salvo8519/fairmark | 92 | Apache-2.0 |
Migawka bazy z 13.11.2026 · wersja paczki c737839ee57c (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 2 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 92add-method
Prowadzi krok po kroku przez dodanie nowej metody wyceny do silnika Fairmark: rdzeń, rejestr, schematy, kod Python, dokumentację i testy. - 92add-method
Prowadzi krok po kroku przez dodanie nowej metody wyceny do silnika Fairmark: rdzeń, rejestr, schematy, kod Python, dokumentację i testy. - 92test-case
Pisze jeden przypadek testu jednostkowego, gdy użytkownik o to poprosi. - 100oxygen-author
Zamienia ręczny przypadek testowy w zautomatyzowany test Oxygen, uruchamia go i naprawia błędy, aż test przejdzie. - 100test-case-authoring
Pisze plan testów i przypadki dla jednego zadania: śledzenie kryteriów, dane, kroki, oczekiwany wynik i dowody zaliczenia. - 100criterion-verification-map
Zamienia kryteria akceptacji w uruchamialne polecenia weryfikacji na etapie planu, z oczekiwanymi dowodami i obszarami ryzyka, wykonuje je przy weryfikacji i składa pakiet dowodów.